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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.0047690b
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x74]
push ecx
push dword [eax]
push dword [esp + 0x2c]
call fcn.00486576
test al, al
mov ecx, dword [ebp + 8]
jne 0x48661c
push dword [ebp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, esi
call fcn.00486e57
jmp 0x486e4e
mov eax, dword [esi]
call fcn.0047690b
mov eax, dword [eax + 0xc]
mov ebx, dword [esp + 0x68]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x35c]
mov dword [esp + 0xbc], eax
xor edi, edi
xor eax, eax
inc eax
inc dword [esi]
mov dword [esp + 0x58], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x88], eax
mov eax, dword [esi]
mov dword [esp + 0x40], 0x4692c0
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0x80], 8
mov dword [esp + 0x84], ebx
call fcn.0047690b
cmp dword [eax + 8], 0x47
je 0x4866cc
push dword [esp + 0x6c]
push 0x6f
jmp 0x486e18
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push dword [ebp + 8]
lea ecx, [esp + 0x24]
push dword [esp + 0x20]
call fcn.00486514
test eax, eax
jne 0x486e21
mov eax, ebx
call fcn.00463b45
cmp dword [esp + 0x34], edi
push 3
mov dword [esp + 0x24], eax
pop ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], edi
jle 0x48691f
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x28]
jae 0x48691f
mov esi, dword [esp + 0x20]
inc dword [esp + 0x38]
mov eax, ebx
mov ecx, esi
mov byte [esp + 0x17], 0
mov dword [esp + 0x2c], edi
call fcn.0047690b
cmp dword [eax + 8], edi
jne 0x48686b
mov eax, ebx
mov ecx, esi
call fcn.0047690b
cmp dword [eax], 0x23
jne 0x486759
mov byte [esp + 0x17], 1
jmp 0x486773
mov eax, ebx
mov ecx, esi
call fcn.0047690b
cmp dword [eax], 0x1e
jne 0x4869c6
mov dword [esp + 0x2c], 0x100
inc ebx
mov eax, ebx
mov ecx, esi
mov dword [esp + 0x10], ebx
call fcn.0047690b
cmp dword [eax + 8], edi
je 0x486744
cmp byte [esp + 0x17], 0
je 0x48686b
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
call fcn.0047690b
cmp dword [eax + 8], 0x33
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x1c]
jne 0x4869d2
call fcn.0047690b
push dword [eax]
lea esi, [esp + 0xb4]
call fcn.0046a436
lea eax, [esp + 0x3c]
push eax
xor ecx, ecx
lea esi, [esp + 0x34]
lea edi, [esp + 0xb4]
call fcn.0046a20c
push dword [esp + 0xb0]
mov bl, al
neg bl
sbb bl, bl
inc bl
call 0x4a8594
test bl, bl
pop ecx
jne 0x4869dc
mov eax, 0x100
test dword [esp + 0x30], eax
je 0x48680a
test dword [esp + 0x2c], eax
je 0x4869f2
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
inc dword [esp + 0x10]
cmp dword [eax + 8], 5
jne 0x48684a
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
call fcn.0047690b
cmp dword [eax + 8], 0x4e
jne 0x48684a
push dword [esp + 0x18]
mov ecx, dword [ebp + 8]
lea edi, [esp + 0x40]
lea eax, [esp + 0x20]
call fcn.0048ab07
test eax, eax
jne 0x486e21
push dword [esp + 0x3c]
lea esi, [esp + 0x54]
call fcn.0046c877
mov eax, esi
push eax
lea esi, [esp + 0x44]
call fcn.0046b2e3
mov ebx, dword [esp + 0x10]
xor edi, edi
jmp 0x4868ca
push edi
lea esi, [esp + 0x54]
call fcn.0046c1a1
mov eax, esi
push eax
lea esi, [esp + 0x44]
call fcn.0046b2e3
mov eax, dword [esp + 0x48]
cmp eax, edi
jne 0x486890
call fcn.0048a2b5
jmp 0x486898
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + eax*4 - 4]
push dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [ebp + 8]
call fcn.0048b6f9
test eax, eax
jne 0x486e21
mov ecx, dword [esp + 0x20]
inc ebx
mov eax, ebx
call fcn.0047690b
cmp dword [eax + 8], 0x41
jne 0x4868ca
inc ebx
inc ebx
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x28]
je 0x48691f
mov ecx, dword [ebp + 8]
call fcn.0047690b
cmp dword [eax + 8], 0x40
mov eax, dword [esp + 0x1c]
jne 0x486a0b
lea ecx, [eax + 1]
cmp ecx, dword [esp + 0x28]
je 0x486a0b
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
mov eax, ebx
call fcn.0047690b
cmp dword [eax + 8], 0x40
jne 0x48690d
inc ebx
inc dword [esp + 0x24]
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x34]
jl 0x486713
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x64]
jl 0x486e12
cmp eax, dword [esp + 0x34]
jg 0x486e12
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x28]
jne 0x486e12
mov dword [esp + 0x10], 3
call fcn.0046a269
xor eax, eax
inc eax
cmp dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
jl 0x486b00
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
or dword [esp + 0xc8], 0xffffffff
xor ebx, ebx
xor edi, edi
mov ecx, esi
mov dword [esp + 0x70], 0x468838
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0x2c], edi
mov byte [esp + 0x17], 0
call fcn.0047690b
cmp dword [eax + 8], ebx
jne 0x486b9e
mov eax, dword [esp + 0x10]
mov ecx, esi
call fcn.0047690b
cmp dword [eax], 0x23
jne 0x486a1b
mov byte [esp + 0x17], 1
jmp 0x486a37
push 0xffffffffffffffff
push 0x91
jmp 0x486e18
call fcn.0047690b
push dword [eax + 0xc]
jmp 0x4869c8
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
call fcn.0047690b
push dword [eax + 0xc]
push 0x79
jmp 0x486e18
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
call fcn.0047690b
push dword [eax + 0xc]
push 0xb0
jmp 0x486e18
mov ecx, dword [ebp + 8]
call fcn.0047690b
push dword [eax + 0xc]
jmp 0x4866c5
mov eax, dword [esp + 0x10]
mov ecx, esi
call fcn.0047690b
cmp dword [eax], 0x1e
jne 0x486a3b
mov dword [esp + 0x2c], 0x100
mov edi, dword [esp + 0x2c]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, esi
call fcn.0047690b
cmp dword [eax + 8], ebx
je 0x4869af
cmp byte [esp + 0x17], 0
je 0x486b9e
mov eax, dword [esp + 0x10]
mov ecx, esi
call fcn.0047690b
push dword [eax]
lea esi, [esp + 0xe0]
call fcn.0046a436
mov eax, dword [esp + 0x24]
dec eax
lea ecx, [esp + 0x40]
call fcn.00461ff6
cmp dword [eax + 8], 6
jne 0x486a8b
mov eax, dword [eax]
jmp 0x486a8d
xor eax, eax
cmp dword [0x4898bc], ebx
je 0x486abd
cmp eax, ebx
je 0x486abd
push eax
mov eax, 0x4898bc
or edi, 0x200
call fcn.0046a3d1
push eax
mov eax, edi
lea ecx, [esp + 0xe4]
call fcn.0046b80b
mov bl, 1
jmp 0x486abf
xor bl, bl
push dword [esp + 0xdc]
call 0x4a8594
test bl, bl
pop ecx
je 0x486d49
add dword [esp + 0x10], 2
lea ecx, [esp + 0xc0]
call fcn.0046b48f
lea ecx, [esp + 0x70]
call fcn.004639cd
inc dword [esp + 0x24]
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x34]
jle 0x486963
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x80]
add edi, 0x66c
push eax
mov dword [esp + 0x68], edi
call fcn.0047680d
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
xor ebx, ebx
lea esi, [edi + 0x340]
push ebx
mov dword [edi + 0x35c], eax
mov word [edi + 0x296], bx
call fcn.0046c1a1
push ebx
xor ecx, ecx
mov eax, edi
call fcn.004767b2
movzx eax, word [edi + 0x296]
test al, 4
mov dword [edi + 0x358], ebx
je 0x486b63
xor eax, 4
mov word [edi + 0x296], ax
mov eax, dword [esp + 0x68]
push ebx
push ebx
inc eax
push eax
mov ecx, edi
call fcn.004765fc
test byte [edi + 0x296], 1
je 0x486d7e
mov ebx, dword [ebp + 0x10]
push esi
call fcn.0046bfed
xor word [edi + 0x296], 1
push 1
call fcn.0046c1a1
xor ebx, ebx
jmp 0x486d87
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x38]
jle 0x486c96
lea esi, [esp + 0x70]
call fcn.00463a83
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
add esi, 2
mov eax, esi
mov ecx, edi
mov dword [esp + 0x30], ebx
call fcn.0047690b
cmp dword [eax + 8], 0x4a
je 0x486be6
mov eax, esi
mov ecx, edi
call fcn.0047690b
cmp dword [eax + 8], 0x49
je 0x486be6
mov eax, esi
jmp 0x486c00
mov eax, esi
mov ecx, edi
call fcn.0047690b
push eax
lea ebx, [esp + 0x74]
call fcn.004639ec
mov eax, dword [esp + 0x10]
add eax, 3
mov ecx, edi
call fcn.0047690b
push eax
lea ebx, [esp + 0x74]
call fcn.004639ec
push 0x7f
pop edi
lea esi, [esp + 0xc0]
call fcn.0046b4e8
mov eax, esi
push eax
call fcn.004639ec
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x38]
push eax
mov eax, ebx
push eax
call fcn.0048b6f9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
call fcn.0047690b
push dword [eax]
lea esi, [esp + 0xd4]
call fcn.0046a436
mov eax, dword [esp + 0x2c]
or eax, 0x200
cmp dword [0x4898bc], 0
push eax
lea eax, [esp + 0x54]
push eax
mov eax, esi
push eax
jne 0x486c7d
push 0x4898b8
jmp 0x486c88
mov eax, 0x4898bc
call fcn.0046a3d1
push eax
call fcn.0046b778
push dword [esp + 0xd0]
jmp 0x486cee
mov eax, dword [esp + 0x10]
mov ecx, esi
call fcn.0047690b
push dword [eax]
lea esi, [esp + 0xb4]
call fcn.0046a436
mov eax, dword [esp + 0x24]
or edi, 0x200
dec eax
lea ecx, [esp + 0x40]
call fcn.00461ff6
cmp dword [0x4898bc], ebx
push edi
push eax
mov eax, esi
push eax
jne 0x486cd7
push 0x4898b8
jmp 0x486ce2
mov eax, 0x4898bc
call fcn.0046a3d1
push eax
call fcn.0046b778
push dword [esp + 0xb0]
call 0x4a8594
mov eax, dword [esp + 0x14]
pop ecx
mov ecx, dword [esp + 0x20]
inc eax
call fcn.0047690b
cmp dword [eax + 8], 0x41
jne 0x486ad4
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add esi, 2
mov eax, esi
call fcn.0047690b
cmp dword [eax + 8], 0x4a
je 0x486d3f
mov ecx, dword [esp + 0x20]
mov eax, esi
call fcn.0047690b
cmp dword [eax + 8], 0x49
je 0x486d3f
add dword [esp + 0x10], 4
jmp 0x486ad9
add dword [esp + 0x10], 5
jmp 0x486ad9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
call fcn.0047690b
push dword [eax + 0xc]
mov ebx, dword [esp + 0x1c]
push 0x79
call fcn.00474db1
lea ecx, [esp + 0xc0]
call fcn.0046b48f
lea ecx, [esp + 0x70]
call fcn.004639cd
jmp 0x486e21
mov esi, dword [ebp + 0x10]
push ebx
call fcn.0046c1a1
movzx eax, word [edi + 0x296]
test al, 2
je 0x486d9e
xor eax, 2
mov word [edi + 0x296], ax
jmp 0x486da8
push ebx
xor ecx, ecx
mov eax, edi
call fcn.004767b2
movzx eax, word [edi + 0x296]
test al, 4
je 0x486dbf
xor eax, 4
mov word [edi + 0x296], ax
jmp 0x486dc5
mov dword [edi + 0x358], ebx
mov edi, dword [esp + 0x64]
call fcn.00476867
call fcn.0046a2c3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xbc]
mov dword [eax + 0x35c], ecx
lea ecx, [esp + 0xa0]
call fcn.0046bb33
lea ecx, [esp + 0x90]
call fcn.0046bb33
lea ecx, [esp + 0x50]
call fcn.0046bb33
lea ecx, [esp + 0x40]
call fcn.0046b2c4
xor eax, eax
jmp 0x486e4e
push dword [esp + 0x6c]
push 0x70
mov ebx, dword [esp + 0x20]
call fcn.00474db1
lea ecx, [esp + 0xa0]
call fcn.0046bb33
lea ecx, [esp + 0x90]
call fcn.0046bb33
lea ecx, [esp + 0x50]
call fcn.0046bb33
lea ecx, [esp + 0x40]
call fcn.0046b2c4
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc