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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [0x4d36a4]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x50], 0
mov eax, dword [esi + 0x7c]
mov ebx, dword [eax + 0xc]
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ebx
mov eax, dword [ebx + 0xec]
push dword [ebx + 0x88]
mov dword [esp + 0x3c], eax
call fcn.00443ca0
mov ecx, dword [ebx + 0x78]
add esp, 4
mov dword [esp + 0x70], eax
test ecx, ecx
je 0x4862a7
cmp dword [ecx + 0x20], 0
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x50], eax
jne 0x4862a0
cmp dword [ecx + 0x24], 0
jne 0x4862a0
cmp dword [ecx + 0x28], 0
jne 0x4862a0
cmp dword [ecx + 0x3c], 0
jne 0x4862a0
cmp dword [ecx + 0x4c], 0
je 0x4862a7
mov dword [esi + 0x30], 1
cmp dword [esi + 0x24], 0
jne 0x4862d1
cmp byte [esi + 0x1b], 0
jl 0x4862d1
mov eax, dword [ebx]
lea ecx, [esp + 0x3c]
push ecx
push ebx
mov eax, dword [eax + 0x74]
call eax
add esp, 8
test eax, eax
jne 0x486d4e
mov edi, dword [esp + 0x3c]
jmp 0x4862d7
xor edi, edi
mov dword [esp + 0x3c], edi
movzx eax, word [esi + 0x16]
test edi, edi
mov dword [esp + 0x48], eax
mov eax, 1
cmove edi, eax
push 0x158
mov dword [esp + 0x48], edi
call fcn.004340b0
push 0x158
push 0
push eax
mov dword [esp + 0x3c], eax
call fcn.004a3fe0
movd xmm0, edi
mov ecx, edi
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4bbc50]
call fcn.004a7c20
add esp, 8
movsd qword [esp + 0x28], xmm0
fld qword [esp + 0x28]
fstp qword [esp]
call fcn.004a8130
add esp, 8
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
call fcn.004a2345
mov esi, eax
xor edx, edx
mov eax, dword [esp + 0x48]
mov ecx, esi
add eax, 4
mov dword [esp + 0x54], esi
mov dword [esp + 0x34], eax
mov eax, 0x100000
div dword [esp + 0x34]
cmp esi, eax
jae 0x486376
nop dword [eax]
add ecx, ecx
cmp ecx, eax
jb 0x486370
cmp ecx, edi
mov esi, edi
cmovbe esi, ecx
nop dword [eax]
mov edi, esi
imul edi, dword [esp + 0x34]
lea eax, [edi*4]
push eax
call fcn.00433ed0
add esp, 4
test eax, eax
je 0x4863b5
push eax
call fcn.00434080
lea eax, [edi + edi]
push eax
call fcn.00433ed0
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x4863d3
jmp 0x4863b7
shr esi, 1
mov eax, dword [esp + 0x54]
cmp esi, eax
jae 0x486380
mov esi, eax
add eax, eax
imul eax, dword [esp + 0x34]
push eax
call fcn.004340b0
add esp, 4
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x48]
mov dword [eax], edx
mov dword [eax + 4], 0
mov dword [eax + 0xc], edi
mov al, byte [edx + 0x1a]
mov byte [ebx + 0x10], al
mov eax, dword [edx + 0x20]
mov edx, ebx
mov dword [edx + 0x14], eax
lea eax, [esi + esi]
mov dword [edx + 0x34], eax
mov eax, dword [esp + 0x44]
mov dword [edx + 0x1c], eax
dec eax
mov dword [edx + 0x30], esi
add eax, esi
mov dword [edx + 0x38], ecx
xor edx, edx
div esi
mov esi, ebx
mov dword [esi + 0x28], eax
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.004340b0
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x40], eax
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push 0
push eax
call fcn.004a3fe0
add esp, 0x10
lea eax, [edi + 1]
push eax
push 0
push eax
call fcn.004340b0
add esp, 4
push eax
call fcn.004a3fe0
mov ebx, dword [esp + 0x64]
add esp, 0xc
mov dword [esi + 0x14c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x160], esi
mov dword [esi + 0x18], eax
cmp dword [esp + 0x3c], 0
jne 0x486520
mov edi, dword [esp + 0x40]
mov eax, dword [edi + 0x7c]
movzx ecx, word [eax + 0x2e]
movzx eax, word [edi + 0x16]
add eax, 0x54
add eax, ecx
push eax
push 0
push eax
call fcn.004340b0
add esp, 4
push eax
call fcn.004a3fe0
mov esi, eax
push 0
mov byte [esi + 0x20], 0xff
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x40], edi
push dword [edi + 0x7c]
call fcn.00480730
mov dword [esi], eax
add esp, 0x14
mov dword [esi + 0x24], 1
mov dword [esi + 0x44], 0
mov eax, dword [edi + 0xa4]
mov dword [esi + 0x48], eax
mov dword [edi + 0xa4], esi
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4864ec
mov dword [eax + 0x44], esi
mov dword [esi + 0x38], 0
mov dword [esi + 0x10], 0xffffffff
mov byte [esi + 0x21], 1
mov dword [edi + 0x84], esi
mov eax, dword [esi]
mov dword [edi + 0x74], eax
mov byte [esi + 0x20], 3
push dword [edi + 0x84]
call fcn.004844e0
add esp, 4
jmp 0x486d2f
movzx eax, word [ebx + 0x174]
xor esi, esi
mov dword [esp + 0x6c], eax
xor edi, edi
mov eax, dword [ebx + 0xe4]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x48], esi
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x30], esi
mov dword [esp + 0x64], ecx
cmp word [eax + 0x18], si
je 0x486567
push edi
call fcn.00422fe0
add esp, 4
mov dword [esp + 0x30], eax
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x4865bd
cmp dword [ecx + 0x34], esi
jne 0x4865bd
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x486594
push eax
call fcn.00424270
mov esi, eax
add esp, 4
test esi, esi
je 0x486594
mov edi, 1
mov dword [esp + 0x44], edi
jmp 0x486609
mov eax, dword [ebx + 0x78]
cmp dword [eax + 0x28], edi
jne 0x486671
cmp dword [eax + 0x20], edi
jg 0x486671
cmp dword [eax + 0x4c], edi
je 0x4865b8
mov dword [esp + 0x34], 1
jmp 0x486609
cmp dword [eax + 0x3c], edi
jne 0x4865c8
xor eax, eax
mov word [ebx + 0x174], ax
jmp 0x486609
cmp word [ebx + 0x174], di
je 0x486609
push ebx
call fcn.0047fa50
mov edi, eax
add esp, 4
test edi, edi
je 0x486607
push dword [edi + 0x7c]
call fcn.00480b30
push edi
call fcn.004881f0
push edi
call fcn.004870b0
mov eax, dword [edi + 0x88]
push dword [edi + 0x7c]
mov esi, dword [eax]
call fcn.004810b0
add esp, 0x10
xor edi, edi
movzx ecx, word [ebx + 0xa2]
xor edx, edx
mov eax, 0x10000
div ecx
mov dword [esp + 0x54], eax
call fcn.0042ca70
test eax, eax
jne 0x4866a2
mov edx, dword [esp + 0x54]
cmp edx, 1
jle 0x4866a2
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x48664a
cmp dword [ecx + 0x34], eax
jne 0x48664a
cmp word [ebx + 0x174], ax
jne 0x4866a2
cmp dword [esp + 0x34], eax
jne 0x4866a2
movzx eax, word [ebx + 0xa2]
imul eax, edx
mov dword [esp + 0x4c], 1
push eax
call fcn.004340b0
mov ecx, dword [esp + 0x30]
add esp, 4
mov dword [ecx + 0x154], eax
jmp 0x4866aa
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x486686
push ecx
call fcn.00424270
mov esi, eax
add esp, 4
mov eax, dword [ebx + 0x78]
mov ecx, dword [esp + 0x38]
test esi, esi
mov eax, dword [eax + 0x20]
cmovne ecx, esi
test eax, eax
mov esi, ecx
cmovg edi, eax
mov dword [esp + 0x44], edi
jmp 0x486609
mov dword [esp + 0x4c], 0
test esi, esi
jne 0x4866bd
cmp word [ebx + 0x174], si
mov eax, 1
cmove esi, eax
mov eax, dword [ebx]
test esi, esi
jne 0x4866ce
mov eax, dword [eax + 0x18]
push ebx
call eax
add esp, 4
jmp 0x4866ec
mov eax, dword [eax + 0x10]
push esi
push ebx
call eax
add esp, 8
cmp dword [esp + 0x34], 0
je 0x4866ec
mov eax, dword [ebx]
push 1
push ebx
mov eax, dword [eax + 0x24]
call eax
add esp, 8
cmp dword [ebx + 0x28], 0
mov esi, dword [ebx + 0xec]
mov dword [esp + 0x38], esi
jne 0x486cc3
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x486819
cmp esi, dword [esp + 0x3c]
ja 0x486cc3
mov eax, dword [esp + 0x48]
test eax, eax
je 0x486724
cmp eax, dword [esp + 0x54]
jl 0x486795
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x54]
sub ecx, esi
cmp ecx, eax
jb 0x486736
mov ecx, eax
jmp 0x486737
inc ecx
test edi, edi
je 0x486740
cmp edi, ecx
cmovb ecx, edi
movzx eax, word [ebx + 0xa2]
mov edi, eax
cdq
push edx
push eax
imul edi, ecx
lea ecx, [esi - 1]
push 0
push ecx
call fcn.004a2750
mov esi, eax
mov ecx, edx
movzx eax, word [ebx + 0xa0]
cdq
add esi, eax
mov eax, dword [esp + 0x2c]
adc ecx, edx
push ecx
push esi
push edi
push dword [eax + 0x154]
push dword [ebx + 0x8c]
call fcn.004419e0
add esp, 0x14
cmp eax, edi
jne 0x486c44
mov esi, dword [esp + 0x38]
xor edi, edi
jmp 0x486799
mov edi, dword [esp + 0x48]
movzx eax, word [ebx + 0xa2]
mov ecx, dword [esp + 0x2c]
imul eax, edi
push 0
push ebx
add eax, dword [ecx + 0x154]
mov dword [ebx + 0xe4], eax
mov eax, dword [ebx]
mov dword [ebx + 0xec], esi
mov eax, dword [eax + 0x54]
call eax
add esp, 8
cmp eax, 1
je 0x486cc3
mov eax, dword [ebx + 0xe4]
xor ecx, ecx
mov dword [ebx + 0x118], 1
mov dword [ebx + 0x114], 1
cmp byte [eax], 0x2a
sete cl
cmp dword [ebx + 0x7c], 0
mov dword [ebx + 0x124], ecx
je 0x486814
mov eax, dword [ebx]
push ebx
mov eax, dword [eax + 0xd4]
call eax
add esp, 4
cmp eax, 1
je 0x486cc3
inc edi
mov dword [esp + 0x48], edi
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x48684f
mov eax, dword [ebx + 0x78]
mov edi, dword [esp + 0x50]
cmp edi, dword [eax + 0x18]
jl 0x48684a
xor edi, edi
push ecx
mov dword [esp + 0x54], edi
call fcn.0042f2a0
push eax
call fcn.004240f0
add esp, 8
test eax, eax
je 0x486cc3
inc edi
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x60]
test eax, eax
je 0x48686e
push eax
call fcn.0042f2a0
push eax
call fcn.004240f0
add esp, 8
test eax, eax
je 0x486cc3
cmp esi, dword [esp + 0x3c]
ja 0x486bd4
mov eax, dword [esp + 0x64]
test eax, eax
je 0x486897
push eax
call fcn.0042f2a0
push eax
call fcn.004240f0
add esp, 8
test eax, eax
je 0x486bd4
mov edi, dword [esp + 0x40]
movzx ecx, word [edi + 0x18]
test cx, cx
je 0x4868ba
mov eax, dword [ebx]
push dword [esp + 0x30]
push ecx
mov eax, dword [eax + 0x58]
push ebx
call eax
mov eax, dword [esp + 0x3c]
add esp, 0xc
jmp 0x4868c9
push dword [edi + 0xc]
call fcn.0042f2a0
add esp, 4
mov dword [esp + 0x30], eax
push eax
call fcn.00426550
add esp, 4
cmp eax, 0x40
ja 0x486aff
je 0x486ae7
sub eax, 2
cmp eax, 0x1e
ja case.0x4868f4.3
movzx eax, byte [eax + 0x486d6c]
jmp dword [eax*4 + 0x486d60]
cmp word [edi + 0x16], 4
push dword [esp + 0x30]
jne 0x486923
call fcn.00424270
add esp, 4
sub eax, 0x80000000
bswap eax
mov dword [esp + 0x74], eax
mov eax, 4
jmp 0x4869ef
call fcn.004241a0
fstp qword [esp + 0x24]
movsd xmm0, qword [esp + 0x24]
xorps xmm1, xmm1
add esp, 4
comisd xmm0, xmm1
jb 0x48698e
ucomisd xmm0, qword [0x4c2af0]
lahf
test ah, 0x44
jp 0x486952
movsd qword [esp + 0x20], xmm1
mov al, byte [esp + 0x27]
mov ebx, dword [esp + 0x24]
xor al, 0x80
mov edx, dword [esp + 0x20]
mov ecx, edx
mov byte [esp + 0x74], al
mov al, byte [esp + 0x26]
mov byte [esp + 0x75], al
mov eax, ebx
shrd ecx, eax, 0x18
mov byte [esp + 0x76], bh
mov byte [esp + 0x78], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
mov byte [esp + 0x77], bl
shrd eax, ebx, 8
jmp 0x4869da
mov al, byte [esp + 0x27]
mov ebx, dword [esp + 0x24]
not al
mov edx, dword [esp + 0x20]
mov ecx, edx
mov byte [esp + 0x74], al
mov al, byte [esp + 0x26]
not al
mov byte [esp + 0x75], al
mov al, bh
not al
mov byte [esp + 0x76], al
mov al, bl
not al
mov byte [esp + 0x77], al
mov eax, ebx
shrd ecx, eax, 0x18
not cl
mov byte [esp + 0x78], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
not dl
shrd eax, ebx, 8
not cl
not al
mov ebx, dword [esp + 0x58]
mov byte [esp + 0x7a], al
mov eax, 8
mov byte [esp + 0x7b], dl
mov byte [esp + 0x79], cl
push eax
lea eax, [esp + 0x78]
push eax
mov eax, dword [ebx + 0xec]
push eax
push dword [esp + 0x38]
call fcn.00485a00
add esp, 0x10
jmp 0x486bd4
push dword [esp + 0x30]
call fcn.004240a0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0x24], xmm0
xorps xmm1, xmm1
add esp, 4
comisd xmm0, xmm1
jb 0x486a80
ucomisd xmm0, qword [0x4c2af0]
lahf
test ah, 0x44
jp 0x486a44
movsd qword [esp + 0x20], xmm1
mov al, byte [esp + 0x27]
mov ebx, dword [esp + 0x24]
xor al, 0x80
mov edx, dword [esp + 0x20]
mov ecx, edx
mov byte [esp + 0x74], al
mov al, byte [esp + 0x26]
mov byte [esp + 0x75], al
mov eax, ebx
shrd ecx, eax, 0x18
mov byte [esp + 0x76], bh
mov byte [esp + 0x78], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
mov byte [esp + 0x77], bl
shrd eax, ebx, 8
jmp 0x486acc
mov al, byte [esp + 0x27]
mov ebx, dword [esp + 0x24]
not al
mov edx, dword [esp + 0x20]
mov ecx, edx
mov byte [esp + 0x74], al
mov al, byte [esp + 0x26]
not al
mov byte [esp + 0x75], al
mov al, bh
not al
mov byte [esp + 0x76], al
mov al, bl
not al
mov byte [esp + 0x77], al
mov eax, ebx
shrd ecx, eax, 0x18
not cl
mov byte [esp + 0x78], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
not dl
shrd eax, ebx, 8
not cl
not al
mov ebx, dword [esp + 0x58]
mov byte [esp + 0x7a], al
lea eax, [esp + 0x74]
mov byte [esp + 0x7b], dl
mov byte [esp + 0x79], cl
push 8
jmp 0x486b91
push dword [esp + 0x30]
call fcn.00424480
fstp qword [esp + 0x24]
movsd xmm0, qword [esp + 0x24]
jmp 0x486a24
cmp eax, 0x80
je 0x486ba6
cmp eax, 0x400
je 0x486b7a
cmp eax, 0xc00
je 0x486b7a
call fcn.00433880
test ax, ax
jne 0x486b6b
call fcn.0043baa0
mov esi, eax
push 0x21
push esi
call fcn.0043bba0
push 0x402
push esi
call fcn.0043bc40
push 0
push esi
call fcn.0043bc00
push 0x21
call fcn.0044b6a0
push eax
push esi
call fcn.0043bb40
mov eax, dword [ebx]
push esi
push ebx
mov eax, dword [eax + 0x144]
call eax
push esi
call fcn.0043c2d0
mov esi, dword [esp + 0x68]
add esp, 0x30
mov dword [esp + 0x5c], 0
mov edi, 1
jmp 0x486bdc
mov edi, dword [esp + 0x30]
push edi
call fcn.00424060
add esp, 4
push eax
push edi
call fcn.00424080
add esp, 4
push eax
push dword [ebx + 0xec]
push dword [esp + 0x38]
call fcn.00485a00
add esp, 0x10
jmp 0x486bd4
push dword [esp + 0x30]
call fcn.004240f0
neg eax
push 1
sbb al, al
and al, 0xe
add al, 0x46
mov byte [esp + 0x7c], al
lea eax, [esp + 0x7c]
push eax
push dword [ebx + 0xec]
push dword [esp + 0x3c]
call fcn.00485a00
add esp, 0x14
mov edi, dword [esp + 0x44]
test edi, edi
je 0x486be9
sub edi, 1
mov dword [esp + 0x44], edi
je 0x486cc3
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x486bf4
inc esi
jmp 0x486c31
mov eax, dword [ebx]
push 1
push ebx
mov eax, dword [eax + 0x28]
call eax
add esp, 8
cmp eax, 1
je 0x486cc3
cmp dword [esp + 0x34], 0
je 0x486c27
mov eax, dword [ebx]
push 1
push ebx
mov eax, dword [eax + 0x24]
call eax
add esp, 8
cmp eax, 1
je 0x486cc3
mov esi, dword [ebx + 0xec]
mov eax, dword [esp + 0x4c]
cmp dword [ebx + 0x28], 0
mov dword [esp + 0x38], esi
je 0x486704
jmp 0x486cc3
call fcn.00450710
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x64], eax
mov ecx, dword [ecx + 0x7c]
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx]
mov dword [esp + 0x60], eax
call fcn.00433880
test ax, ax
jne 0x486cc3
call fcn.0043baa0
mov esi, eax
push 0x17
push esi
call fcn.0043bba0
push 0x3f2
push esi
call fcn.0043bc40
push dword [esp + 0x74]
push esi
call fcn.0043bc00
push 0x17
call fcn.0044b6a0
push eax
push esi
call fcn.0043bb40
add esp, 0x24
test edi, edi
je 0x486caa
push edi
push esi
call fcn.0043bb60
add esp, 8
mov ecx, dword [esp + 0x60]
push esi
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x144]
call eax
push esi
call fcn.0043c2d0
add esp, 0xc
push dword [esp + 0x2c]
call fcn.00485c50
mov eax, dword [esp + 0x44]
add esp, 4
cmp word [eax + 0x18], 0
je 0x486ce6
push dword [esp + 0x30]
call fcn.00425800
add esp, 4
cmp dword [esp + 0x4c], 0
je 0x486d06
mov eax, dword [esp + 0x68]
push dword [esp + 0x38]
mov dword [ebx + 0xe4], eax
mov eax, dword [ebx]
push ebx
mov eax, dword [eax + 0x10]
call eax
add esp, 8
mov eax, dword [esp + 0x6c]
mov word [ebx + 0x174], ax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x486d2f
cmp dword [esp + 0x50], 0
je 0x486d2f
push eax
call fcn.0042f2a0
push eax
call fcn.004240f0
add esp, 8
push dword [esp + 0x2c]
call fcn.004858b0
push dword [esp + 0x74]
mov dword [ebx + 0x160], 0
call fcn.00443ca0
add esp, 8
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a209e
mov esp, ebp
pop ebp
ret