Function at 0x47baf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d66d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push esi
xor esi, esi
mov dword [esp + 0x24], esi
mov eax, dword [0x6cc33c]
push edi
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x240]
cmp edi, esi
mov eax, dword [esp + 0x244]
mov dword [esp + 0x228], 1
je 0x47bbdf
cmp byte [edi], 0
je 0x47bbdf
cmp eax, esi
je 0x47bb54
cmp byte [eax], 0
jne 0x47bbdf
mov ecx, dword [0x504ebc]
push ecx
push esi
push 0x4f9fc0
lea ecx, [esp + 0x20]
call fcn.0048b8c0
push edi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
mov bl, 2
push eax
mov byte [esp + 0x234], bl
call fcn.0048c360
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x22c], 3
call fcn.0048b2d0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x228], bl
je 0x47bbba
dec eax
cmp eax, esi
mov dword [ecx], eax
jne 0x47bbba
call fcn.0048a9b0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x228], 1
je 0x47bbf2
dec eax
cmp eax, esi
mov dword [ecx], eax
jne 0x47bbf2
call fcn.0048a9b0
jmp 0x47bbf2
cmp eax, esi
je 0x47bbf2
cmp byte [eax], 0
je 0x47bbf2
push eax
lea ecx, [esp + 0x14]
call fcn.0048b9e0
mov ecx, dword [0x6cc33c]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x238]
cmp eax, esi
mov byte [esp + 0x228], 4
je 0x47bc1e
cmp byte [eax], 0
je 0x47bc1e
push eax
lea ecx, [esp + 0x24]
call fcn.0048b9e0
mov edx, dword [0x6cc33c]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x23c]
cmp eax, esi
mov byte [esp + 0x228], 5
je 0x47bc4a
cmp byte [eax], 0
je 0x47bc4a
push eax
lea ecx, [esp + 0x1c]
call fcn.0048b9e0
mov eax, dword [0x504ebc]
push eax
push esi
push str.filedlg
lea ecx, [esp + 0x30]
call fcn.0048b8c0
mov eax, dword [esp + 0x234]
cmp eax, esi
mov byte [esp + 0x228], 6
jne 0x47bc77
mov eax, 0x4e34b4
mov ecx, dword [0x504ebc]
push ecx
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.0048b8c0
mov edx, dword [esp + 0x250]
mov eax, dword [esp + 0x254]
lea ecx, [esp + 0x24]
push ecx
push 0x6c5e90
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x250]
lea edx, [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x264]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0x24c], 7
call fcn.00486630
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x228], 0xa
je 0x47bd06
dec eax
cmp eax, esi
mov dword [ecx], eax
jne 0x47bd06
call fcn.0048a9b0
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x228], 9
je 0x47bd29
dec eax
cmp eax, esi
mov dword [ecx], eax
jne 0x47bd29
call fcn.0048a9b0
cmp edi, esi
je 0x47be2e
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47bd36
sub eax, edx
cmp eax, esi
je 0x47be2e
push esi
push 0x7c
lea ecx, [esp + 0x18]
call fcn.0048bb30
cmp eax, 0xffffffff
je 0x47be2e
push esi
lea ecx, [esp + 0x48]
call fcn.0048ab10
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x22c], 0xb
call fcn.0048ab10
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x234], 0xc
call fcn.004a0380
mov eax, dword [esp + 0x3c]
add esp, 0xc
test eax, eax
jbe 0x47be0c
nop
mov eax, dword [0x504ebc]
push eax
push 0
push edi
lea ecx, [esp + 0x18]
call fcn.0048b8c0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
lea ecx, [ecx + esi*4]
push edx
mov byte [esp + 0x22c], 0xd
call fcn.0048c920
mov ecx, dword [esp + 0xc]
cmp eax, 0xffffffff
mov eax, dword [ecx - 0xc]
setne bl
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x228], 0xc
je 0x47bdf2
dec eax
mov dword [ecx], eax
jne 0x47bdf2
call fcn.0048a9b0
test bl, bl
jne 0x47be01
mov eax, dword [esp + 0x30]
inc esi
cmp esi, eax
jb 0x47bda0
jmp 0x47be0c
test esi, esi
jle 0x47be0c
mov dword [esp + 0x208], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x228], 0xb
call fcn.0048b750
lea ecx, [esp + 0x44]
mov byte [esp + 0x228], 9
call fcn.0048b750
mov eax, dword [0x6cc33c]
mov dword [esp + 0x1c], eax
mov bl, 0xe
lea ecx, [esp + 0x54]
mov byte [esp + 0x228], bl
call fcn.00486870
cmp eax, 0x13ec
jne 0x47be90
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x58]
call fcn.0047b790
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x22c], 0xf
call fcn.0048b2d0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x228], bl
je 0x47be90
dec eax
mov dword [ecx], eax
jne 0x47be90
call fcn.0048a9b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
mov esi, dword [esp + 0x230]
jne 0x47beac
mov edx, dword [0x6cc33c]
mov dword [esi], edx
jmp 0x47bebe
mov dword [esi], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x47bebe
inc ecx
mov dword [eax - 0xc], ecx
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
mov eax, dword [ecx]
cmp eax, 0xffffffff
mov dword [esp + 0x28], 1
mov byte [esp + 0x228], 9
je 0x47bee2
dec eax
mov dword [ecx], eax
jne 0x47bee2
call fcn.0048a9b0
lea ecx, [esp + 0x20c]
mov byte [esp + 0x228], 0x10
call fcn.0048b750
lea ecx, [esp + 0x54]
mov byte [esp + 0x228], 5
call fcn.0047b400
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x228], 4
je 0x47bf28
dec eax
mov dword [ecx], eax
jne 0x47bf28
call fcn.0048a9b0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x228], 1
je 0x47bf49
dec eax
mov dword [ecx], eax
jne 0x47bf49
call fcn.0048a9b0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x228], 0
je 0x47bf6a
dec eax
mov dword [ecx], eax
jne 0x47bf6a
call fcn.0048a9b0
mov ecx, dword [esp + 0x220]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x220
ret