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

Disassembly:
sub esp, 0xec
mov eax, dword [0x6b66bc]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
mov ebx, dword [esp + 0xf4]
push esi
push edi
mov edi, ecx
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], edi
mov dword [ebx + 4], 0
test eax, eax
jns 0x48595b
push 0
mov ecx, ebx
call fcn.00412dc0
mov esi, dword [edi + 4]
xor edx, edx
sub esi, dword [edi + 0x2c]
movaps xmm0, xmmword [0x6207a0]
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], edx
movups xmmword [esp + 0xd4], xmm0
test esi, esi
jle 0x485c02
push esi
lea ecx, [esp + 0xbc]
call fcn.00497cd0
cmp esi, 4
jb 0x485a21
shr esi, 1
mov edi, 0xfc000000
add esi, 8
bsr ecx, esi
mov dword [esp + 0x14], esi
mov esi, 0x1f
mov eax, esi
mov dword [esp + 0x94], ecx
setne dl
sub eax, ecx
shl eax, 0x1a
mov ecx, 0x20
test dl, dl
cmovne edi, eax
mov eax, dword [esp + 0x14]
dec eax
sar edi, 0x1f
bsr eax, eax
not edi
mov dword [esp + 0x14], eax
setne dl
sub esi, eax
mov eax, ecx
test dl, dl
cmovne eax, esi
sub ecx, eax
mov eax, 1
and ecx, edi
shl eax, cl
jmp 0x485a26
mov eax, 1
mov ecx, dword [esp + 0xf0]
test ecx, ecx
je 0x485a39
cmp ecx, eax
jge 0x485bfb
mov edx, dword [esp + 0xec]
mov dword [esp + 0xf0], eax
test edx, edx
je 0x485a61
push 0
push 0
push edx
call fcn.0044a270
mov edx, eax
add esp, 0xc
mov dword [esp + 0xec], edx
mov edi, dword [esp + 0xf0]
test edi, edi
je 0x485c02
cmp edi, 1
ja 0x485be3
test edx, edx
je 0x485a93
push 0
push 0
push edx
call fcn.0044a270
mov edx, eax
add esp, 0xc
mov dword [esp + 0xec], edx
xor esi, esi
test edi, edi
jle 0x485ac9
nop dword [eax]
mov eax, dword [esp + 0xf0]
lea ecx, [esp + 0xe8]
test edx, edx
cmovne ecx, edx
dec eax
and eax, esi
inc esi
mov dword [ecx + eax*4], 0xffffffff
mov edx, dword [esp + 0xec]
cmp esi, edi
jl 0x485aa0
cmp dword [esp + 0xd8], 0
lea ecx, [esp + 0xc4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
jge 0x485b18
call fcn.00609320
nop
int3
cmp dword [ecx + 0x14], 0
je 0x485b32
lea ecx, [esp + 0x1c]
call fcn.00410370
mov edx, dword [esp + 0xec]
mov ecx, dword [esp + 0x24]
movups xmm0, xmmword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0xb8]
mov dword [esp + 0x68], esi
movups xmmword [esp + 0x6c], xmm0
movq xmm0, qword [esp + 0x2c]
movq qword [esp + 0x7c], xmm0
cmp eax, dword [ecx + 0x14]
jge 0x485c02
mov edi, dword [esp + 0x7c]
mov eax, dword [esi]
lea ecx, [edi + edi*2]
mov esi, dword [esp + 0xf0]
dec esi
and esi, dword [eax + ecx*4]
lea edx, [eax + ecx*4]
mov dword [edx + 8], esi
lea ecx, [esp + 0xe8]
mov eax, dword [esp + 0xec]
test eax, eax
cmovne ecx, eax
mov eax, dword [esp + 0xf0]
dec eax
and eax, esi
mov eax, dword [ecx + eax*4]
lea ecx, [esp + 0xe8]
mov dword [edx + 4], eax
mov eax, dword [esp + 0xec]
test eax, eax
cmovne ecx, eax
mov eax, dword [esp + 0xf0]
dec eax
and eax, esi
mov dword [ecx + eax*4], edi
lea ecx, [esp + 0x6c]
mov eax, dword [esp + 0x70]
not eax
and dword [esp + 0x78], eax
call fcn.00410370
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x7c]
cmp edi, dword [eax + 0x14]
jge 0x485bfb
mov esi, dword [esp + 0x68]
jmp 0x485b64
lea eax, [edi*4]
push 0
push eax
test edx, edx
jne 0x485a81
push edx
jmp 0x485a82
mov edx, dword [esp + 0xec]
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 4]
sub eax, dword [esi + 0x2c]
cmp eax, dword [ebx + 8]
jle 0x485c20
push eax
mov ecx, ebx
call fcn.00412dc0
mov edx, dword [esp + 0xec]
cmp dword [esi + 0x20], 0
lea ecx, [esi + 0xc]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
jge 0x485c67
call fcn.00609320
nop
int3
cmp dword [ecx + 0x14], 0
je 0x485c81
lea ecx, [esp + 0x34]
call fcn.00410370
mov edx, dword [esp + 0xec]
mov ecx, dword [esp + 0x3c]
movups xmm0, xmmword [esp + 0x34]
mov dword [esp + 0x9c], esi
movups xmmword [esp + 0xa0], xmm0
movq xmm0, qword [esp + 0x44]
movq qword [esp + 0xb0], xmm0
movups xmm0, xmmword [esp + 0x9c]
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x44]
movups xmmword [esp + 0x4c], xmm0
movq xmm0, qword [esp + 0xac]
movq qword [esp + 0x5c], xmm0
cmp eax, dword [ecx + 0x14]
jge 0x485e45
mov esi, dword [esp + 0x60]
nop dword [eax]
mov eax, dword [esp + 0x4c]
lea ecx, [esi + esi*4]
mov eax, dword [eax]
lea edi, [eax + ecx*8]
mov dword [esp + 0xc], edi
mov edi, dword [eax + ecx*8]
mov eax, dword [esp + 0xbc]
sub eax, dword [esp + 0xe4]
je 0x485d3d
mov eax, dword [esp + 0xf0]
lea ecx, [esp + 0xe8]
test edx, edx
cmovne ecx, edx
dec eax
and eax, edi
mov eax, dword [ecx + eax*4]
cmp eax, 0xffffffff
je 0x485d3d
mov ecx, dword [esp + 0xb8]
lea edx, [eax + eax*2]
cmp dword [ecx + edx*4], edi
je 0x485de4
mov eax, dword [ecx + edx*4 + 4]
cmp eax, 0xffffffff
jne 0x485d21
mov dword [esp + 0x18], 0xffffffff
mov edi, dword [esp + 0xc]
mov ecx, dword [ebx]
mov dword [esp + 0x10], edi
cmp edi, ecx
jb 0x485d85
mov eax, dword [ebx + 8]
lea eax, [ecx + eax*4]
cmp edi, eax
jae 0x485d85
lea eax, [esp + 0x10]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], eax
lea eax, [esp + 0x84]
push eax
call fcn.00609110
add esp, 4
nop
int3
mov ecx, dword [ebx + 4]
mov dword [esp + 0x10], ecx
lea eax, [ecx + 1]
mov dword [ebx + 4], eax
cmp eax, dword [ebx + 8]
jle 0x485da3
push ecx
mov ecx, ebx
call fcn.004128d0
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
lea ecx, [eax + ecx*4]
mov eax, dword [edi]
mov dword [ecx], eax
lea ecx, [esi + esi*4]
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
lea edi, [eax + ecx*8]
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0xbc]
call fcn.0048a830
mov esi, dword [esp + 0x90]
test esi, esi
je 0x485df2
mov eax, dword [edi]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
jmp 0x485df4
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x485e1a
jmp 0x485d45
xor esi, esi
mov edx, dword [esi]
mov eax, dword [esp + 0x8c]
push 0
push ecx
mov ecx, esp
push esi
push edx
mov dword [ecx], eax
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0xcc]
call fcn.0048cdf0
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x50]
not eax
and dword [esp + 0x5c], eax
call fcn.00410370
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x60]
mov edx, dword [esp + 0xec]
cmp esi, dword [eax + 0x14]
jl 0x485ce0
mov esi, dword [ebx + 4]
mov dword [esp + 0xf0], 0
test edx, edx
je 0x485e60
push edx
call fcn.0043f8f0
add esp, 4
cmp dword [esp + 0xc0], 0
mov dword [esp + 0xbc], 0
je 0x485e83
push 0
lea ecx, [esp + 0xbc]
call fcn.00412ee0
mov eax, dword [esp + 0xdc]
mov dword [esp + 0xe0], 0xffffffff
mov dword [esp + 0xe4], 0
mov dword [esp + 0xd8], 0
test eax, eax
js 0x485eb6
cmp eax, 0x80
jle 0x485ecf
push 0
lea ecx, [esp + 0xc8]
mov dword [esp + 0xe0], 0x80
call fcn.00411980
mov eax, dword [esp + 0xd4]
test eax, eax
je 0x485ee3
push eax
call fcn.0043f8f0
add esp, 4
mov ecx, dword [esp + 0xb8]
test ecx, ecx
je 0x485ef7
push ecx
call fcn.0043f8f0
add esp, 4
mov ecx, dword [esp + 0xf4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005f4480
add esp, 0xec
ret 4