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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x28], edi
call fcn.00476e7c
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x6c]
push ecx
push dword [eax]
push edi
call fcn.00486a0a
test al, al
mov ecx, dword [ebp + 8]
jne 0x486ab0
push dword [ebp + 0x10]
mov eax, esi
mov edx, edi
call fcn.00487256
jmp 0x48724d
mov eax, dword [esi]
call fcn.00476e7c
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0x35c]
inc dword [esi]
mov dword [esp + 0x5c], eax
mov eax, dword [esi]
mov dword [esp + 0x38], 0x46b434
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], ebx
call fcn.00476e7c
cmp dword [eax + 8], 0x47
je 0x486b0f
push dword [esp + 0x64]
push 0x6f
jmp 0x487231
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
lea ecx, [esp + 0x20]
push edi
call fcn.004869a8
test eax, eax
jne 0x487238
mov eax, dword [esp + 0x60]
call fcn.00463bff
cmp dword [esp + 0x30], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 3
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], ebx
jle 0x486d6f
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x20]
jae 0x486d6f
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
inc dword [esp + 0x34]
mov ecx, esi
mov byte [esp + 0x13], 0
mov dword [esp + 0x24], ebx
call fcn.00476e7c
cmp dword [eax + 8], ebx
jne 0x486cb0
mov eax, dword [esp + 0xc]
mov ecx, esi
call fcn.00476e7c
cmp dword [eax], 0x23
jne 0x486ba4
mov byte [esp + 0x13], 1
jmp 0x486bc0
mov eax, dword [esp + 0xc]
mov ecx, esi
call fcn.00476e7c
cmp dword [eax], 0x1e
jne 0x486e18
mov dword [esp + 0x24], 0x100
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov ecx, esi
call fcn.00476e7c
cmp dword [eax + 8], ebx
je 0x486b8d
cmp byte [esp + 0x13], 0
je 0x486cb0
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
call fcn.00476e7c
cmp dword [eax + 8], 0x33
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x18]
jne 0x486e24
call fcn.00476e7c
push dword [eax]
lea esi, [esp + 0x7c]
call fcn.0046a8ac
lea eax, [esp + 0x58]
push eax
xor ecx, ecx
lea esi, [esp + 0x30]
lea edi, [esp + 0x7c]
call fcn.0046a682
push dword [esp + 0x78]
mov bl, al
neg bl
sbb bl, bl
inc bl
call 0x4aa060
test bl, bl
pop ecx
jne 0x486e2e
mov eax, 0x100
test dword [esp + 0x2c], eax
je 0x486c4f
test dword [esp + 0x24], eax
je 0x486e48
inc dword [esp + 0x18]
mov eax, dword [esp + 0x58]
inc dword [esp + 0xc]
cmp dword [eax + 8], 5
jne 0x486c8f
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
call fcn.00476e7c
cmp dword [eax + 8], 0x4e
jne 0x486c8f
push dword [esp + 0x28]
mov ecx, dword [ebp + 8]
lea edi, [esp + 0x5c]
lea eax, [esp + 0x1c]
call fcn.0048af73
test eax, eax
jne 0x487238
push dword [esp + 0x58]
lea esi, [esp + 0x4c]
call fcn.0046ce74
mov eax, esi
push eax
lea esi, [esp + 0x3c]
call fcn.0046b8f1
mov edi, dword [esp + 0x28]
xor ebx, ebx
jmp 0x486d15
push ebx
lea esi, [esp + 0x4c]
call fcn.0046c79e
mov eax, esi
push eax
lea esi, [esp + 0x3c]
call fcn.0046b8f1
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x486cd5
call fcn.0048a6ad
jmp 0x486cdd
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + eax*4 - 4]
push dword [esp + 0x20]
mov ecx, edi
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
call fcn.0048bb65
test eax, eax
jne 0x487238
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.00476e7c
cmp dword [eax + 8], 0x41
jne 0x486d15
add dword [esp + 0xc], 2
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x20]
je 0x486d6f
mov ecx, dword [ebp + 8]
call fcn.00476e7c
cmp dword [eax + 8], 0x40
mov eax, dword [esp + 0x18]
jne 0x486e5e
lea ecx, [eax + 1]
cmp ecx, dword [esp + 0x20]
je 0x486e5e
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
call fcn.00476e7c
cmp dword [eax + 8], 0x40
jne 0x486d5d
inc dword [esp + 0xc]
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x30]
jl 0x486b5a
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x84]
jl 0x48722b
cmp eax, dword [esp + 0x30]
jg 0x48722b
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x20]
jne 0x48722b
mov dword [esp + 0xc], 3
call fcn.0046a6df
xor eax, eax
inc eax
cmp dword [esp + 0x30], eax
mov dword [esp + 0x1c], eax
jl 0x486f5c
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
or dword [esp + 0x90], 0xffffffff
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x68], 0x46a958
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x13], bl
call fcn.00476e7c
cmp dword [eax + 8], esi
jne 0x486fd9
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.00476e7c
cmp dword [eax], 0x23
jne 0x486e6e
mov byte [esp + 0x13], 1
jmp 0x486e8c
push 0xffffffffffffffff
push 0x91
jmp 0x487231
call fcn.00476e7c
push dword [eax + 0xc]
jmp 0x486e1a
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
call fcn.00476e7c
push dword [eax + 0xc]
push 0x79
mov ebx, dword [esp + 0x30]
jmp 0x487233
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
call fcn.00476e7c
push dword [eax + 0xc]
push 0xb0
jmp 0x486e3f
mov ecx, dword [ebp + 8]
call fcn.00476e7c
push dword [eax + 0xc]
jmp 0x486b08
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.00476e7c
cmp dword [eax], 0x1e
jne 0x486e90
mov dword [esp + 0x24], 0x100
mov ebx, dword [esp + 0x24]
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.00476e7c
cmp dword [eax + 8], esi
je 0x486dff
cmp byte [esp + 0x13], 0
je 0x486fd9
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.00476e7c
push dword [eax]
lea esi, [esp + 0xa8]
call fcn.0046a8ac
mov eax, dword [esp + 0x1c]
dec eax
lea ecx, [esp + 0x38]
call fcn.00462035
cmp dword [eax + 8], 6
jne 0x486ee4
mov eax, dword [eax]
jmp 0x486ee6
xor eax, eax
cmp dword [0x48b924], 0
je 0x486f17
test eax, eax
je 0x486f17
push eax
mov eax, 0x48b924
or ebx, 0x200
call fcn.0046a847
push eax
mov eax, ebx
lea ecx, [esp + 0xac]
call fcn.0046be08
mov bl, 1
jmp 0x486f19
xor bl, bl
push dword [esp + 0xa4]
call 0x4aa060
test bl, bl
pop ecx
je 0x48718f
add dword [esp + 0xc], 2
lea ecx, [esp + 0x88]
call fcn.0046ba9d
lea ecx, [esp + 0x68]
call fcn.00463a87
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x30]
jle 0x486db6
xor ebx, ebx
mov eax, dword [esp + 0x34]
lea esi, [edi + 0x340]
push ebx
mov dword [edi + 0x35c], eax
mov word [edi + 0x296], bx
call fcn.0046c79e
push ebx
xor ecx, ecx
mov eax, edi
call fcn.00476d60
movzx eax, word [edi + 0x296]
test al, 4
mov dword [edi + 0x358], ebx
je 0x486f9e
xor eax, 4
mov word [edi + 0x296], ax
mov eax, dword [esp + 0x60]
push ebx
push ebx
inc eax
push eax
mov ecx, edi
call fcn.00476b8b
test byte [edi + 0x296], 1
je 0x4871bf
mov ebx, dword [ebp + 0x10]
push esi
call fcn.0046c5ea
xor word [edi + 0x296], 1
push 1
call fcn.0046c79e
xor ebx, ebx
jmp 0x4871c8
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x1c], eax
jle 0x4870df
lea esi, [esp + 0x68]
call fcn.00463b3d
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
and dword [esp + 0x2c], 0
add esi, 2
mov eax, esi
call fcn.00476e7c
cmp dword [eax + 8], 0x4a
je 0x487022
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00476e7c
cmp dword [eax + 8], 0x49
je 0x487022
mov eax, esi
jmp 0x48703e
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00476e7c
push eax
lea ebx, [esp + 0x6c]
call fcn.00463aa6
mov eax, dword [esp + 0xc]
add eax, 3
mov ecx, dword [esp + 0x14]
call fcn.00476e7c
push eax
lea ebx, [esp + 0x6c]
call fcn.00463aa6
push 0x7f
pop edi
lea esi, [esp + 0x88]
call fcn.0046baf6
mov eax, esi
push eax
call fcn.00463aa6
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x34]
push eax
mov eax, ebx
push eax
call fcn.0048bb65
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.00476e7c
push dword [eax]
lea esi, [esp + 0x9c]
call fcn.0046a8ac
mov eax, dword [esp + 0x24]
or eax, 0x200
cmp dword [0x48b924], 0
push eax
lea eax, [esp + 0x4c]
push eax
mov eax, esi
push eax
jne 0x4870bd
push 0x48b920
jmp 0x4870c8
mov eax, 0x48b924
call fcn.0046a847
push eax
call fcn.0046bd75
push dword [esp + 0x98]
call 0x4aa060
mov edi, dword [esp + 0x2c]
jmp 0x487139
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.00476e7c
push dword [eax]
lea esi, [esp + 0x7c]
call fcn.0046a8ac
mov eax, dword [esp + 0x1c]
or ebx, 0x200
dec eax
lea ecx, [esp + 0x38]
call fcn.00462035
cmp dword [0x48b924], 0
push ebx
push eax
mov eax, esi
push eax
jne 0x487120
push 0x48b920
jmp 0x48712b
mov eax, 0x48b924
call fcn.0046a847
push eax
call fcn.0046bd75
push dword [esp + 0x78]
call 0x4aa060
mov eax, dword [esp + 0x10]
pop ecx
mov ecx, dword [esp + 0x14]
inc eax
call fcn.00476e7c
cmp dword [eax + 8], 0x41
jne 0x486f2e
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
add esi, 2
mov eax, esi
call fcn.00476e7c
cmp dword [eax + 8], 0x4a
je 0x487185
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00476e7c
cmp dword [eax + 8], 0x49
je 0x487185
add dword [esp + 0xc], 4
jmp 0x486f33
add dword [esp + 0xc], 5
jmp 0x486f33
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.00476e7c
push dword [eax + 0xc]
mov ebx, edi
push 0x79
call fcn.004753a8
lea ecx, [esp + 0x88]
call fcn.0046ba9d
lea ecx, [esp + 0x68]
call fcn.00463a87
jmp 0x487238
mov esi, dword [ebp + 0x10]
push ebx
call fcn.0046c79e
movzx eax, word [edi + 0x296]
test al, 2
je 0x4871df
xor eax, 2
mov word [edi + 0x296], ax
jmp 0x4871e9
push ebx
xor ecx, ecx
mov eax, edi
call fcn.00476d60
movzx eax, word [edi + 0x296]
test al, 4
je 0x487200
xor eax, 4
mov word [edi + 0x296], ax
jmp 0x487206
mov dword [edi + 0x358], ebx
call fcn.0046a739
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x48]
mov dword [edi + 0x35c], eax
call fcn.0046c130
lea ecx, [esp + 0x38]
call fcn.0046b8d2
xor eax, eax
jmp 0x48724d
push dword [esp + 0x64]
push 0x70
mov ebx, edi
call fcn.004753a8
lea ecx, [esp + 0x48]
call fcn.0046c130
lea ecx, [esp + 0x38]
call fcn.0046b8d2
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc