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

Disassembly:
push 0xffffffffffffffff
push 0x4c1706
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
mov eax, dword [esp + 0x90]
push ebp
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x18], ecx
jne 0x4866e7
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
add esp, 0x8c
ret 4
cmp byte [eax], 0x80
push ebx
mov ebx, eax
push esi
mov dword [esp + 0x2c], ebx
jae 0x486719
mov esi, dword [sym.imp.MSVCR71.dll_isspace]
lea ebx, [ebx]
movsx eax, byte [ebx]
push eax
call esi
add esp, 4
test eax, eax
je 0x486715
mov al, byte [ebx + 1]
inc ebx
cmp al, 0x80
jb 0x486700
mov dword [esp + 0x2c], ebx
push edi
xor edi, edi
lea esp, [esp]
mov esi, dword [edi*8 + 0x512bfc]
call fcn.004758f0
cmp eax, ebp
je 0x48673b
push ebp
push esi
mov ecx, eax
call fcn.00475d60
jmp 0x48673d
mov eax, esi
cmp eax, ebp
jne 0x486746
mov eax, 0x4c8731
mov ecx, dword [0x4e4f74]
push ecx
push ebp
push eax
lea ecx, [esp + 0x24]
call fcn.00472c90
mov edx, dword [esp + 0x18]
mov esi, dword [edx - 8]
mov eax, ebx
mov dword [esp + 0x98], ebp
lea edx, [eax + 1]
jmp 0x486770
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486770
sub eax, edx
cmp eax, esi
jb 0x4867c7
push esi
push ebp
push ebx
lea ecx, [esp + 0x28]
call fcn.00472c90
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 1
call fcn.004727c0
test eax, eax
je 0x486981
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x4867c7
dec ecx
cmp ecx, ebp
mov dword [eax], ecx
jne 0x4867c7
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov dword [esp + 0x98], 0xffffffff
je 0x4867f2
dec ecx
cmp ecx, ebp
mov dword [eax], ecx
jne 0x4867f2
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
inc edi
cmp edi, 3
jb 0x486720
mov eax, dword [str..____t_r_n]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x10], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x11], 0
mov dword [esp + 0x34], 7
mov dword [esp + 0x18], esi
mov ebp, 0xc
mov dword [esp + 0x1c], esi
mov dword [esp + 0x68], esi
jne 0x486839
mov eax, 0x4c8731
mov edx, dword [0x4e4f74]
push edx
push esi
push eax
lea ecx, [esp + 0x78]
call fcn.00472c90
mov eax, dword [0x4e4f74]
push eax
push esi
push ebx
lea ecx, [esp + 0x70]
mov dword [esp + 0xa4], 2
call fcn.00472c90
push esi
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0xa4], 3
call fcn.0047d3a0
mov eax, dword [esp + 0x64]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x4868a3
dec ecx
cmp ecx, esi
mov dword [eax], ecx
jne 0x4868a3
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax - 0xc]
mov esi, dword [sym.imp.MSVCR71.dll_free]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov bl, 5
mov byte [esp + 0x98], bl
je 0x4868cc
dec ecx
mov dword [eax], ecx
jne 0x4868cc
push eax
call esi
add esp, 4
lea ecx, [esp + 0x38]
call fcn.0047d140
test al, al
je 0x486b88
lea ecx, [ecx]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
call fcn.0047d210
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
mov byte [esp + 0x98], 7
je 0x486af7
push 0xa
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00471ca0
test al, al
je 0x486a51
mov cl, byte [esp + 0x12]
test cl, cl
mov eax, dword [esp + 0x70]
jne 0x486936
test eax, eax
jbe 0x486936
cmp eax, 0xc
jbe 0x486a44
mov dl, byte [esp + 0x10]
test dl, dl
jne 0x486a1e
test cl, cl
je 0x486a0e
mov al, byte [esp + 0x11]
test al, al
mov eax, dword [esp + 0x1c]
jne 0x48695b
mov eax, 0xffff8000
push 0
push eax
call fcn.00485fc0
movzx eax, al
lea edx, [eax + eax*2]
lea eax, [ebp + edx*4]
mov cx, word [eax*2 + 0x512b78]
mov eax, dword [esp + 0x78]
add esp, 8
jmp 0x486a13
lea ecx, [esp + 0x54]
add ebx, esi
mov esi, dword [edi*8 + 0x512c00]
push ecx
call fcn.00486530
mov edx, dword [eax]
mov ecx, dword [esp + 0x28]
mov dword [ecx], edx
mov eax, dword [eax + 4]
add esp, 4
cmp esi, ebp
mov dword [ecx + 4], eax
je 0x4869c7
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], esi
call fcn.00486410
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x4869e7
dec ecx
cmp ecx, ebp
mov dword [eax], ecx
jne 0x4869e7
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x486a07
dec ecx
cmp ecx, ebp
mov dword [eax], ecx
jne 0x486a07
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, ebx
jmp 0x486fa1
mov ecx, 0x1f
test eax, eax
je 0x486a1e
movzx ecx, cx
cmp eax, ecx
jbe 0x486a3b
mov cl, byte [esp + 0x11]
test cl, cl
jne 0x486b27
movzx edx, ax
mov byte [esp + 0x11], 1
mov dword [esp + 0x1c], edx
jmp 0x486aeb
mov dword [esp + 0x18], eax
jmp 0x486ae6
mov byte [esp + 0x12], 1
lea ebp, [eax - 1]
jmp 0x486aeb
push 3
lea edi, [esp + 0x18]
call fcn.00485a20
add esp, 4
cmp eax, 0xc
je 0x486a8b
mov cl, byte [esp + 0x12]
test cl, cl
je 0x486a82
mov cl, byte [esp + 0x10]
test cl, cl
jne 0x486b27
inc ebp
mov dword [esp + 0x18], ebp
mov byte [esp + 0x10], 1
mov ebp, eax
mov byte [esp + 0x12], 1
jmp 0x486aeb
push 3
lea edi, [esp + 0x18]
call fcn.00485b20
add esp, 4
cmp eax, 7
mov dword [esp + 0x34], eax
je 0x486ab1
mov al, byte [esp + 0x13]
test al, al
jne 0x486b27
mov byte [esp + 0x13], 1
jmp 0x486aeb
xor esi, esi
mov eax, dword [esi*4 + 0x512ba8]
push eax
lea ecx, [esp + 0x18]
call fcn.004727e0
test eax, eax
je 0x486ace
inc esi
cmp esi, 0x14
jb 0x486ab3
cmp esi, 0x14
je 0x486b47
mov al, byte [esp + 0x10]
test al, al
jne 0x486b47
inc esi
mov dword [esp + 0x18], esi
mov esi, dword [sym.imp.MSVCR71.dll_free]
mov byte [esp + 0x10], 1
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov byte [esp + 0x98], bl
je 0x486b14
dec ecx
mov dword [eax], ecx
jne 0x486b14
push eax
call esi
add esp, 4
lea ecx, [esp + 0x38]
call fcn.0047d140
test al, al
jne 0x4868e0
jmp 0x486b6c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov byte [esp + 0x98], bl
je 0x486b6c
dec ecx
mov dword [eax], ecx
jne 0x486b6c
push eax
call esi
jmp 0x486b69
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov byte [esp + 0x98], bl
je 0x486b6c
dec ecx
mov dword [eax], ecx
jne 0x486b6c
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov cl, byte [esp + 0x10]
test cl, cl
mov esi, dword [sym.imp.MSVCR71.dll_localtime]
mov edi, dword [sym.imp.MSVCR71.dll_time]
mov dl, byte [esp + 0x13]
jne 0x486be7
test dl, dl
jne 0x486bef
mov eax, dword [esp + 0x44]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov dword [esp + 0x98], 0xffffffff
je 0x486bb1
dec ecx
mov dword [eax], ecx
jne 0x486bb1
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x486bcf
dec ecx
mov dword [eax], ecx
jne 0x486bcf
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], vtable.wxObject.0
call fcn.00474100
xor eax, eax
jmp 0x486fa1
test dl, dl
je 0x486cd0
mov al, byte [esp + 0x12]
test al, al
jne 0x486c61
mov bl, byte [esp + 0x11]
test bl, bl
jne 0x486c61
test cl, cl
jne 0x486c71
test dl, dl
je 0x486cd4
test al, al
jne 0x486d92
mov edx, dword [sym.imp.MSVCR71.dll__timezone]
mov eax, dword [edx]
neg eax
xor ebx, ebx
push ebx
mov dword [esp + 0x24], eax
call edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
call esi
add esp, 8
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.00485780
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x5c]
call fcn.00485c20
mov ebp, dword [eax + 0xc]
jmp 0x486d94
test cl, cl
je 0x486c71
test al, al
je 0x486c71
mov bl, byte [esp + 0x11]
test bl, bl
jne 0x486c03
mov eax, dword [esp + 0x44]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov dword [esp + 0x98], 0xffffffff
je 0x486c9a
dec ecx
mov dword [eax], ecx
jne 0x486c9a
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x486cb8
dec ecx
mov dword [eax], ecx
jne 0x486cb8
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], vtable.wxObject.0
call fcn.00474100
xor eax, eax
jmp 0x486fa1
mov al, byte [esp + 0x12]
mov dl, byte [esp + 0x11]
test dl, dl
je 0x486c0b
test cl, cl
je 0x486d2f
test al, al
jne 0x486d92
mov eax, dword [esp + 0x18]
cmp ax, 0xc
ja 0x486d33
mov ebx, dword [esp + 0x1c]
movzx ebp, ax
dec ebp
test ebx, ebx
jle 0x486d33
push 0
push 0xffff8000
call fcn.00485fc0
movzx eax, al
lea edx, [eax + eax*2]
lea eax, [ebp + edx*4]
movzx ecx, word [eax*2 + 0x512b78]
add esp, 8
cmp ebx, ecx
jg 0x486d33
mov dword [esp + 0x18], ebx
xor ebx, ebx
jmp 0x486d9c
test al, al
jne 0x486d92
mov eax, dword [esp + 0x44]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov dword [esp + 0x98], 0xffffffff
je 0x486d5c
dec ecx
mov dword [eax], ecx
jne 0x486d5c
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x486d7a
dec ecx
mov dword [eax], ecx
jne 0x486d7a
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], vtable.wxObject.0
call fcn.00474100
xor eax, eax
jmp 0x486fa1
xor ebx, ebx
mov al, byte [esp + 0x11]
test al, al
jne 0x486de4
mov eax, dword [sym.imp.MSVCR71.dll__timezone]
mov eax, dword [eax]
neg eax
push ebx
mov dword [esp + 0x2c], eax
call edi
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], eax
call esi
add esp, 8
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.00485780
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x5c]
call fcn.00485c20
mov eax, dword [eax + 0x10]
jmp 0x486de8
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 0x10]
test cl, cl
push ebx
je 0x486ed3
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
push ebx
push ebx
push ebx
push eax
push ebp
push ecx
mov ecx, esi
call fcn.004861e0
mov al, byte [esp + 0x13]
test al, al
je 0x486f1b
mov edx, dword [sym.imp.MSVCR71.dll__timezone]
mov eax, dword [edx]
neg eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call fcn.00485c20
mov esi, eax
cmp word [esi + 0x18], 7
jne 0x486e62
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
xor edx, edx
mov dx, word [esi + 8]
push edx
call fcn.004850d0
add eax, 2
cdq
mov ecx, 7
add esp, 4
idiv ecx
mov word [esi + 0x18], dx
movzx edx, word [esi + 0x18]
cmp edx, dword [esp + 0x34]
je 0x486f1b
mov eax, dword [esp + 0x44]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov dword [esp + 0x98], 0xffffffff
je 0x486e9b
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x486e9b
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x486ebb
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x486ebb
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], vtable.wxObject.0
call fcn.00474100
xor eax, eax
jmp 0x486fa1
call edi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
call esi
add esp, 8
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00485780
lea ecx, [esp + 0x28]
call fcn.004863a0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [ecx], edx
mov edx, dword [esp + 0x34]
push 1
push edx
mov dword [ecx + 4], eax
call fcn.004865d0
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x30]
add esi, eax
cmp eax, ebx
je 0x486f43
movsx eax, byte [esi - 1]
mov ecx, dword [str..____t_r_n]
push eax
push ecx
call dword [sym.imp.MSVCR71.dll_strchr]
add esp, 8
test eax, eax
je 0x486f43
dec esi
mov eax, dword [esp + 0x44]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov dword [esp + 0x98], 0xffffffff
je 0x486f6e
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x486f6e
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x486f8e
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x486f8e
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], vtable.wxObject.0
call fcn.00474100
mov eax, esi
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebx
pop ebp
mov dword fs:[0], ecx
add esp, 0x8c
ret 4