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

Disassembly:
push 0xffffffffffffffff
push 0x4d71b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4bc
push ebx
push ebp
mov ebx, ecx
mov eax, dword [ebx + 0x2c]
push esi
xor esi, esi
test eax, eax
push edi
mov dword [esp + 0x2c], ebx
je 0x4868a8
mov esi, dword [eax + 0x114]
test esi, esi
jne 0x4868ce
mov ecx, dword [0x6e3edc]
mov eax, dword [ecx]
call dword [eax + 0xa8]
test eax, eax
je 0x4868ce
mov ecx, dword [0x6e3edc]
mov edx, dword [ecx]
call dword [edx + 0xa8]
mov esi, dword [eax + 0x114]
mov byte [0x6d3d80], 0
mov eax, dword [ebx + 0xcc]
mov ecx, eax
shr ecx, 4
test cl, 1
mov byte [esp + 0xc4], 0
mov dword [esp + 0x14], 4
je 0x4868fd
mov dword [esp + 0x14], 0x1804
mov cl, byte [ebx + 0x1c8]
test cl, cl
je 0x48690f
or dword [esp + 0x14], 0x880020
mov edx, eax
shr edx, 5
test dl, 1
je 0x486921
or dword [esp + 0x14], 0x80200
mov ecx, eax
shr ecx, 7
test cl, 1
jne 0x486930
or dword [esp + 0x14], 8
shr eax, 2
test al, 1
je 0x48693c
or dword [esp + 0x14], 2
mov edx, dword [0x6ca858]
xor eax, eax
mov ecx, 0x19
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x1a0]
mov dword [esp + 0x40], edx
mov edx, dword [0x6cc33c]
lea ecx, [esp + 0xc4]
mov dword [esp + 0x44], esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], 0x406
mov dword [esp + 0x34], edx
mov eax, dword [ebx + 0x1a4]
mov edi, dword [eax - 8]
lea ebp, [ebx + 0x1a4]
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x4d8], 0
mov dword [esp + 0x3c], ebp
call fcn.0048ae70
xor esi, esi
test edi, edi
jbe 0x486a0f
lea esp, [esp]
mov ecx, ebp
call fcn.0048ad50
mov ecx, dword [ebp]
mov al, byte [esi + ecx]
cmp al, 0x2f
mov byte [esp + 0x24], al
je 0x4869cb
cmp al, 0x5c
je 0x4869d0
jmp 0x4869fa
mov byte [esp + 0x24], 0x5c
lea ebx, [edi - 1]
cmp esi, ebx
jae 0x4869f6
mov ecx, ebp
call fcn.0048ad50
mov edx, dword [ebp]
mov al, byte [edx + esi + 1]
cmp al, 0x5c
je 0x4869ed
cmp al, 0x2f
jne 0x4869f6
test esi, esi
jbe 0x4869f6
inc esi
cmp esi, ebx
jb 0x4869d7
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push eax
push 1
lea ecx, [esp + 0x3c]
call fcn.0048b950
inc esi
cmp esi, edi
jb 0x4869b0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x6c], ecx
push 0
lea ecx, [esp + 0xb8]
mov dword [esp + 0x78], edx
mov dword [esp + 0x88], 0x486590
call fcn.0048ab10
push 0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x4d8], 1
call fcn.0048ab10
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0xb8]
push ecx
lea edx, [ebx + 0x1b0]
push edx
mov byte [esp + 0x4e0], 2
call fcn.004a0380
mov edi, eax
mov eax, dword [0x6cc33c]
add esp, 0xc
mov dword [esp + 0x18], eax
xor esi, esi
test edi, edi
mov byte [esp + 0x4d4], 3
jbe 0x486aef
mov edi, edi
mov eax, dword [esp + 0xbc]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0048ba20
push 1
push 0x4ffbf8
push 1
lea ecx, [esp + 0x24]
call fcn.0048ba20
mov ecx, dword [esp + 0xac]
mov eax, dword [ecx + esi*4]
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0048ba20
push 1
push 0x4ffbf8
push 1
lea ecx, [esp + 0x24]
call fcn.0048ba20
inc esi
cmp esi, edi
jb 0x486a90
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
xor esi, esi
test ecx, ecx
jbe 0x486b1b
cmp byte [eax + esi], 0x7c
jne 0x486b13
lea ecx, [esp + 0x18]
call fcn.0048ad50
mov edx, dword [esp + 0x18]
mov byte [edx + esi], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
inc esi
cmp esi, ecx
jb 0x486af8
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x1b4]
inc eax
mov dword [esp + 0x58], eax
lea eax, [ebx + 0x1ac]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
push 0xfffd
push eax
push 0x6d3d80
call fcn.004bc810
mov ecx, dword [0x6cc33c]
add esp, 0xc
mov byte [0x6e3d7d], 0
mov dword [esp + 0x5c], 0x6d3d80
mov dword [esp + 0x60], 0xfffe
mov dword [esp + 0x28], ecx
mov edx, dword [ebx + 0xcc]
shr edx, 1
test dl, 1
mov byte [esp + 0x4d4], 4
je 0x486ce8
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x18]
lea eax, [eax + eax - 1]
test eax, eax
jle 0x486bb4
mov edi, eax
test edx, edx
je 0x486bab
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486ba0
sub eax, esi
jmp 0x486bad
xor eax, eax
dec edi
lea edx, [edx + eax + 1]
jne 0x486b95
test edx, edx
jne 0x486bbd
mov edx, 0x4e34b4
mov eax, dword [0x504ebc]
push eax
push 0
push edx
lea ecx, [esp + 0x28]
call fcn.0048b8c0
mov ecx, dword [0x504ebc]
push ecx
push 0
push 0x4ffbf4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4e0], 5
call fcn.0048b8c0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
mov bl, 6
push ecx
mov byte [esp + 0x4e0], bl
call fcn.0047b870
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4d8], 7
call fcn.0048b2d0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x4d4], bl
je 0x486c40
dec eax
mov dword [ecx], eax
jne 0x486c40
call fcn.0048a9b0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x4d4], 5
je 0x486c61
dec eax
mov dword [ecx], eax
jne 0x486c61
call fcn.0048a9b0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x4d4], 4
je 0x486c82
dec eax
mov dword [ecx], eax
jne 0x486c82
call fcn.0048a9b0
push 0
push 0x4ffbf0
lea ecx, [esp + 0x30]
call fcn.0048c5a0
test al, al
je 0x486ce8
mov edx, dword [0x504ebc]
push edx
push 2
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
call fcn.0048c4e0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4d8], 8
call fcn.0048b2d0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x4d4], 4
je 0x486ce0
dec eax
mov dword [ecx], eax
jne 0x486ce0
call fcn.0048a9b0
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 0x3c]
push edx
call fcn.004a02b0
add esp, 4
mov ebp, dword [esp + 0x2c]
test byte [ebp + 0xcc], 2
mov edi, dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
mov ebx, dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
mov byte [esp + 0x4d4], 9
je 0x486d1f
lea eax, [esp + 0x40]
push eax
call ebx
jmp 0x486d26
lea ecx, [esp + 0x40]
push ecx
call edi
test eax, eax
je 0x486d31
mov byte [esp + 0x13], 1
jmp 0x486da5
mov esi, dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
call esi
cmp eax, 1
mov byte [esp + 0x13], 0
jne 0x487198
mov ecx, dword [esp + 0x40]
mov eax, 0x4c
cmp ecx, eax
je 0x487198
mov dword [esp + 0x40], eax
test byte [ebp + 0xcc], 2
je 0x486d6e
lea edx, [esp + 0x40]
push edx
call ebx
jmp 0x486d75
lea eax, [esp + 0x40]
push eax
call edi
test eax, eax
je 0x486d80
mov byte [esp + 0x13], 1
jmp 0x486d8f
call esi
test eax, eax
mov byte [esp + 0x13], 0
jne 0x487198
mov al, byte [esp + 0x13]
test al, al
mov ecx, dword [esp + 0x40]
mov dword [0x6ca858], ecx
je 0x487198
test byte [esp + 0x14], 8
je 0x486db9
lea edx, [esp + 0x3c]
push edx
call fcn.0049fd30
add esp, 4
mov esi, dword [esp + 0x2c]
lea ebp, [esi + 0x1b8]
mov ecx, ebp
call fcn.0048b700
mov eax, dword [esi + 0xcc]
shr eax, 5
test al, 1
je 0x486f80
movzx ecx, word [esp + 0x78]
mov al, byte [ecx + 0x6d3d7f]
test al, al
jne 0x486f80
mov ecx, dword [esp + 0x38]
push 0x6d3d80
call fcn.0048b9e0
movzx esi, word [esp + 0x78]
mov edi, dword [esp + 0x24]
lea edx, [esi + 0x6d3d80]
push edx
mov ecx, edi
call fcn.0048b9e0
push 1
push edi
mov ecx, ebp
call fcn.0048bd00
mov eax, dword [edi]
mov eax, dword [eax - 8]
lea edi, [esi + eax + 1]
mov al, byte [edi + 0x6d3d80]
test al, al
lea esi, [edi + 0x6d3d80]
je 0x486ec5
mov bl, 0xa
lea esp, [esp]
test esi, esi
mov eax, esi
jne 0x486e4b
mov eax, 0x4e34b4
mov ecx, dword [0x504ebc]
push ecx
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.0048b8c0
push 1
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
mov byte [esp + 0x4dc], bl
call fcn.0048bd00
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x4d4], 9
je 0x486e94
dec eax
mov dword [ecx], eax
jne 0x486e94
call fcn.0048a9b0
test esi, esi
je 0x486eab
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486ea0
sub eax, edx
jmp 0x486ead
xor eax, eax
lea edi, [edi + eax + 1]
mov al, byte [edi + 0x6d3d80]
test al, al
lea esi, [edi + 0x6d3d80]
jne 0x486e40
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x486ede
mov ecx, dword [0x6cc33c]
mov dword [esp + 0x14], ecx
jmp 0x486eee
mov dword [esp + 0x14], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x486eee
inc ecx
mov dword [eax - 0xc], ecx
mov edi, dword [esp + 0x38]
mov edx, dword [edi]
mov esi, dword [edx - 8]
mov bl, 0xb
mov ecx, edi
mov byte [esp + 0x4d4], bl
call fcn.0048ad50
mov eax, dword [edi]
cmp byte [eax + esi - 1], 0x5c
je 0x486f1d
push 0x5c
push 1
lea ecx, [esp + 0x1c]
call fcn.0048b950
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0048c220
add esp, 0xc
mov esi, dword [esp + 0x2c]
lea ecx, [esi + 0x1a8]
push eax
mov byte [esp + 0x4d8], 0xc
call fcn.0048b2d0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x4d4], bl
je 0x486f6c
dec eax
mov dword [ecx], eax
jne 0x486f6c
call fcn.0048a9b0
mov ecx, dword [esp + 0x58]
dec ecx
mov dword [esi + 0x1b4], ecx
mov ecx, dword [esp + 0x14]
jmp 0x48717b
mov eax, dword [esp + 0x58]
mov cx, word [esp + 0x7a]
test cx, cx
lea edx, [eax - 1]
mov dword [esi + 0x1b4], edx
je 0x486fa8
movzx ecx, cx
mov dl, byte [ecx + 0x6d3d80]
test dl, dl
jne 0x4870dd
mov edx, dword [esp + 0x18]
lea eax, [eax + eax - 1]
test eax, eax
jle 0x486fd4
mov edi, eax
test edx, edx
je 0x486fcb
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486fc0
sub eax, esi
jmp 0x486fcd
xor eax, eax
dec edi
lea edx, [edx + eax + 1]
jne 0x486fb6
test edx, edx
jne 0x486fdd
mov edx, 0x4e34b4
mov eax, dword [0x504ebc]
push eax
push 0
push edx
lea ecx, [esp + 0x3c]
call fcn.0048b8c0
mov ecx, dword [0x504ebc]
push ecx
push 0
push 0x6d3d80
lea ecx, [esp + 0x28]
mov byte [esp + 0x4e0], 0xd
call fcn.0048b8c0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
mov bl, 0xe
push ecx
mov byte [esp + 0x4e0], bl
call fcn.0047b870
add esp, 0xc
mov esi, dword [esp + 0x24]
push eax
mov ecx, esi
mov byte [esp + 0x4d8], 0xf
call fcn.0048b2d0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x4d4], bl
je 0x487062
dec eax
mov dword [ecx], eax
jne 0x487062
call fcn.0048a9b0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x4d4], 0xd
je 0x487083
dec eax
mov dword [ecx], eax
jne 0x487083
call fcn.0048a9b0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x4d4], 9
je 0x4870a4
dec eax
mov dword [ecx], eax
jne 0x4870a4
call fcn.0048a9b0
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp ecx, 0xfffd
jb 0x4870b6
mov ecx, 0xfffd
push ecx
push eax
push 0x6d3d80
call fcn.004bc810
mov edx, dword [esi]
mov eax, dword [edx - 8]
add esp, 0xc
cmp eax, 0xfffd
jb 0x4870d6
mov eax, 0xfffd
mov byte [eax + 0x6d3d80], 0
mov ecx, dword [esp + 0x2c]
push 0x6d3d80
add ecx, 0x1a8
call fcn.0048b9e0
push 0x6d3d80
call fcn.004a0990
mov esi, dword [esp + 0x28]
add esp, 4
push eax
mov ecx, esi
call fcn.0048b9e0
push 1
push esi
mov ecx, ebp
call fcn.0048bd00
mov eax, dword [0x504ebc]
push eax
push 0
push 0x6d3d80
lea ecx, [esp + 0x28]
call fcn.0048b8c0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
mov bl, 0x10
push edx
mov byte [esp + 0x4dc], bl
call fcn.0049fb00
add esp, 8
mov ecx, dword [esp + 0x38]
push eax
mov byte [esp + 0x4d8], 0x11
call fcn.0048b2d0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x4d4], bl
je 0x487177
dec eax
mov dword [ecx], eax
jne 0x487177
call fcn.0048a9b0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x4d4], 9
je 0x487198
dec eax
mov dword [ecx], eax
jne 0x487198
call fcn.0048a9b0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x3c]
neg al
mov byte [esp + 0x4d4], 4
sbb eax, eax
add eax, 0x13ed
add ecx, 0xfffffff4
mov esi, eax
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x4871c7
dec eax
mov dword [ecx], eax
jne 0x4871c7
call fcn.0048a9b0
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x4d4], 3
je 0x4871e8
dec eax
mov dword [ecx], eax
jne 0x4871e8
call fcn.0048a9b0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x4d4], 2
je 0x487209
dec eax
mov dword [ecx], eax
jne 0x487209
call fcn.0048a9b0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x4d4], 1
call fcn.0048b750
lea ecx, [esp + 0xb4]
mov byte [esp + 0x4d4], 0
call fcn.0048b750
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov dword [esp + 0x4d4], 0xffffffff
je 0x487255
dec eax
mov dword [ecx], eax
jne 0x487255
call fcn.0048a9b0
mov ecx, dword [esp + 0x4cc]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c8
ret