Function at 0x1004f015
Capabilities:
Create thread

Disassembly:
push ebp
sub esp, 0x68c
lea ebp, [esp - 4]
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp + 0x68c], eax
push 0x30
mov eax, 0x1013c094
call fcn.101018b2
xor ebx, ebx
push ebx
push str._b_tg_e
push 0x1200
push ebx
push str..jpg
mov dword [ebp - 0x20], ecx
push 1
lea ecx, [ebp]
call fcn.1004c49c
mov dword [ebp], 0x10159e6c
mov esi, 0x1fffe
push esi
mov dword [ebp - 4], ebx
mov dword [ebp + 0x40], 0xffff
call fcn.10100af4
push esi
mov edi, eax
push ebx
push edi
mov dword [ebp - 0x24], edi
call fcn.101027c0
add esp, 0x10
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x1019e718
mov dword [ebp + 0x3c], edi
call fcn.1003a190
mov eax, dword [ebp - 0x3c]
cmp dword [eax - 8], ebx
je 0x1004f0a1
mov dword [ebp + 0x4c], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp - 0x20]
lea ecx, [esi + 0x1e0]
mov byte [ebp - 4], 2
call fcn.10028ca2
push 0x206
lea eax, [ebp + 0x486]
push ebx
push eax
mov word [ebp + 0x484], bx
call fcn.101027c0
add esp, 0xc
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp]
call fcn.1004c399
cmp eax, 1
jne 0x1004f3f3
push edi
lea ecx, [ebp - 0x18]
call fcn.1000587e
push dword [ebp - 0x18]
mov byte [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1004f13f
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.1001dab5
cmp eax, 0xffffffff
je 0x1004f13f
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000e702
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.10005459
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.100015d9
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], ebx
je 0x1004f160
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.1000584b
mov ecx, 0x1019e718
call fcn.1003a210
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], ebx
xor edi, edi
jmp 0x1004f16f
xor ebx, ebx
movzx eax, word [esi]
movzx ecx, word [esi + 2]
cmp ax, bx
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
jne 0x1004f20a
test cx, cx
je 0x1004f219
mov ecx, dword [ebp - 0x20]
add ecx, 0x1c8
call fcn.10047e43
xor ecx, ecx
cmp dword [ebp - 0x34], ecx
je 0x1004f1ac
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x34]
sar ecx, 2
add eax, ecx
cmp eax, 0x64
jge 0x1004f292
mov eax, dword [ebp - 0x28]
mov ecx, edi
sub ecx, eax
lea ecx, [ecx + ecx + 2]
push ecx
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp + 0x484]
push eax
call fcn.10102a40
add esp, 0xc
lea eax, [ebp + 0x484]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000587e
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.10028ff4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.100015d9
lea eax, [edi + 1]
mov dword [ebp - 0x28], eax
inc edi
inc esi
inc esi
cmp edi, 0xfffe
jl 0x1004f16d
mov esi, dword [ebp - 0x20]
cmp dword [ebp - 0x28], edi
jge 0x1004f33f
lea ecx, [esi + 0x1c8]
call fcn.10047e43
cmp eax, 0x64
jl 0x1004f2f4
cmp dword [ebp - 0x14], 0
jne 0x1004f33f
mov eax, dword [0x1019a028]
mov dword [ebp - 0x1c], eax
push 0xf4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.1000201d
mov eax, dword [0x1019a028]
mov dword [ebp - 0x10], eax
push 0xe4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.1000201d
push 0x40
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push dword [esi + 4]
call ebx
lea ecx, [ebp - 0x10]
call fcn.100015d9
lea ecx, [ebp - 0x1c]
jmp 0x1004f336
mov eax, dword [0x1019a028]
mov dword [ebp - 0x10], eax
push 0xf4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.1000201d
mov eax, dword [0x1019a028]
mov dword [ebp - 0x1c], eax
push 0xe4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.1000201d
mov esi, dword [ebp - 0x20]
push 0x40
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [esi + 4]
call ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
call fcn.100015d9
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.100015d9
jmp 0x1004f21c
mov eax, dword [ebp - 0x28]
sub edi, eax
lea ecx, [edi + edi + 2]
push ecx
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp + 0x484]
push eax
call fcn.10102a40
add esp, 0xc
lea eax, [ebp + 0x484]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000587e
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xa
call fcn.10028ff4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.100015d9
xor ecx, ecx
cmp dword [ebp - 0x34], ecx
je 0x1004f3e3
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
xor edi, edi
sar eax, 2
inc edi
cmp eax, edi
jbe 0x1004f3ca
push 0x10155e24
push ecx
lea ecx, [ebp - 0x38]
call fcn.10002755
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100058db
mov byte [ebp - 4], 0xb
xor eax, eax
cmp dword [ebp - 0x34], eax
je 0x1004f386
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
sar eax, 2
cmp edi, eax
jge 0x1004f3c0
push edi
lea ecx, [ebp - 0x38]
call fcn.10002755
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1000c751
push eax
lea ecx, [esi + 0x1e0]
mov byte [ebp - 4], 0xc
call fcn.10028ff4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xb
call fcn.100015d9
inc edi
jmp 0x1004f376
lea ecx, [ebp - 0x14]
call fcn.100015d9
jmp 0x1004f3e3
cmp eax, ecx
je 0x1004f3e3
push ecx
lea ecx, [ebp - 0x38]
call fcn.10002755
push eax
lea ecx, [esi + 0x1e0]
call fcn.10028ff4
lea ecx, [ebp - 0x18]
call fcn.100015d9
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
xor ebx, ebx
push edi
call fcn.10101095
pop ecx
lea ecx, [esi + 0x1e0]
call fcn.10002742
test eax, eax
je 0x1004f41b
push ebx
push ebx
push esi
push 0x1004efa9
push ebx
push ebx
call fcn.1010370a
add esp, 0x18
push dword [esi + 0x188]
call dword [sym.imp.USER32.dll_SetFocus]
lea ecx, [ebp - 0x38]
call fcn.10006ef4
lea ecx, [ebp - 0x3c]
call fcn.100015d9
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x14], ebx
je 0x1004f448
push dword [ebp + 0x14]
call fcn.100ffb54
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x68c]
xor ecx, ebp
call fcn.101018a3
add ebp, 0x690
leave
ret