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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x583f80]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 0x18]
xor ecx, ecx
xorps xmm0, xmm0
mov dword [esp + 0x4c], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x90], eax
movlpd qword [esp + 0x78], xmm0
cmp word [ebp + 0x10], cx
je 0x4851e7
mov eax, dword [edi]
mov eax, dword [eax]
test byte [eax + 0x44], 0x40
je 0x4851e7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret
movzx eax, word [edx]
mov dword [esp + 0x8c], eax
cmp eax, 0x3f
ja 0x4851d0
movzx ebx, ax
xor edx, edx
mov eax, ebx
bts edx, eax
xor esi, esi
cmp eax, 0x20
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x38], xmm0
mov byte [esp + 0x1c], 1
cmovae esi, edx
xor edx, esi
cmp eax, 0x40
cmovae esi, edx
add edx, 0xffffffff
mov dword [esp + 0x74], edx
mov edx, dword [ebp + 0xc]
adc esi, 0xffffffff
and edx, 0x800
mov dword [esp + 0x88], edx
mov edx, 0x183
mov eax, 0x182
cmovne eax, edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x6c], eax
jmp 0x485290
mov eax, dword [esp + 0x5c]
cmp edx, eax
ja 0x48595a
jb 0x4852a8
cmp esi, dword [esp + 0x74]
jae 0x48595e
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x40], eax
jg 0x485956
cmp dword [esp + 0x40], 0
jle 0x4852d7
mov edi, dword [esp + 0x6c]
or edi, dword [ecx + 8]
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0x68]
or edi, dword [ecx + 0xc]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
cmp ecx, eax
jge 0x485301
cmp word [esp + 0x88], 0
mov eax, dword [esp + 0x84]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x2c], ecx
jne 0x48593f
jmp 0x48530c
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x2c], ecx
test dword [ecx + 0x24], 0x400
jne 0x485950
xor eax, eax
mov word [ecx + 0x1e], ax
movzx eax, byte [ecx + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 4]
mov edi, dword [eax + ecx*8 + 0x34]
xor eax, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x38], eax
test ebx, ebx
jle 0x485481
mov ebx, dword [esp + 0x4c]
add ebx, 4
mov dword [esp + 0x20], ebx
lea ebx, [ebx]
xor ecx, ecx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
mov eax, edx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x50], ecx
and ecx, esi
and eax, edx
or ecx, eax
jne 0x485465
mov esi, dword [ebx]
test esi, esi
je 0x4853a5
mov eax, dword [esi + 4]
test eax, 0x1000
je 0x4853a5
test eax, 0x40000
je 0x48539e
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 4]
jmp 0x4853a1
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x485385
cmp byte [esi], 0x9e
jne 0x485461
cmp dword [esi + 0x1c], edi
jne 0x485461
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
movzx eax, ax
push 0
push eax
mov eax, dword [esp + 0x70]
not eax
not ecx
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x38]
push eax
add ecx, 0x50
mov edx, edi
call fcn.00480f60
mov edi, eax
add esp, 0x14
test edi, edi
je 0x485459
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x485415
mov eax, dword [esp + 0x2c]
xor ecx, ecx
movzx edx, word [eax + 0x28]
test edx, edx
jle 0x485411
mov eax, dword [eax + 0x30]
cmp edi, dword [eax]
je 0x485411
inc ecx
add eax, 4
cmp ecx, edx
jl 0x485405
cmp ecx, edx
jge 0x485459
test bl, 0x82
je 0x48543b
cmp word [esi + 0x20], 0
jl 0x48543b
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push dword [edi]
mov edx, dword [edx]
mov ecx, dword [eax]
call fcn.00442720
add esp, 4
test eax, eax
je 0x485459
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
or esi, dword [esp + 0x50]
or edx, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
jmp 0x485465
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
add dword [esp + 0x20], 0x18
mov ebx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x48]
jl 0x485350
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 0x24]
test eax, 0x1000
jne 0x4857f0
test eax, 0x100
je 0x4854b1
mov dword [esp + 0x20], 0
mov dword [esp + 0x50], 0
mov eax, 1
jmp 0x4854df
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x4851d0
test byte [ecx + 0x38], 4
jne 0x4851d0
movzx eax, word [ecx + 0x32]
cmp byte [ecx + 0x36], 0
mov dword [esp + 0x50], eax
movzx eax, word [ecx + 0x34]
setne byte [esp + 0x1c]
xor cl, cl
movzx eax, ax
mov byte [esp + 0x1b], cl
mov byte [esp + 0x1a], cl
mov dword [esp + 0x78], eax
mov dword [esp + 0x38], ecx
xor ecx, ecx
mov dword [esp + 0x24], ecx
test eax, eax
jle 0x4857f0
mov dword [esp + 0x30], ecx
movzx edi, word [esi + 0x18]
mov bl, 1
mov byte [esp + 0xf], bl
cmp ecx, edi
jge 0x485576
movzx eax, word [esi + 0x2a]
cmp ecx, eax
jl 0x485576
mov ebx, dword [esi + 0x30]
mov esi, dword [ebx + ecx*4]
movzx ecx, word [esi + 0xc]
mov eax, ecx
and eax, dword [esp + 0x70]
test ax, ax
je 0x485547
test ecx, 0x100
je 0x4857cf
mov byte [esp + 0x1c], 0
jmp 0x4857cf
test cl, 1
mov ecx, dword [esp + 0x24]
je 0x485572
mov esi, dword [esi]
lea edx, [ecx + 1]
cmp edx, edi
jge 0x485572
inc ecx
lea ecx, [ebx + ecx*4]
lea ecx, [ecx]
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x4855a4
inc edx
add ecx, 4
cmp edx, edi
jl 0x485560
mov ecx, dword [esp + 0x24]
mov bl, byte [esp + 0xf]
mov edx, dword [esp + 0x20]
test edx, edx
je 0x4855b0
mov eax, dword [edx + 4]
movsx esi, word [eax + ecx*2]
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x34], esi
mov dl, byte [ecx + eax]
mov byte [esp + 0x19], dl
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0xc]
movsx eax, word [eax + 0x28]
cmp esi, eax
jne 0x4855bc
jmp 0x4855b5
mov ecx, dword [esp + 0x24]
xor bl, bl
mov byte [esp + 0xf], bl
jmp 0x485576
mov byte [esp + 0x19], 0
or esi, 0xffffffff
mov dword [esp + 0x34], esi
cmp byte [esp + 0x1c], 0
je 0x4855ea
test esi, esi
js 0x4855ea
cmp ecx, edi
jl 0x4855ea
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov ecx, esi
add ecx, ecx
xor edi, edi
cmp byte [eax + ecx*8 + 0xc], 0
movzx edx, dl
cmove edx, edi
mov dword [esp + 0x1c], edx
xor edi, edi
test bl, bl
je 0x485728
mov ebx, dword [esp + 0x4c]
add ebx, 4
jmp 0x485600
cmp edi, dword [esp + 0x48]
jge 0x485728
xor edx, edx
mov eax, edi
bts edx, eax
xor ecx, ecx
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x10]
and ecx, dword [esp + 0x14]
or edx, ecx
jne 0x4856dd
mov ecx, dword [ebx]
test ecx, ecx
je 0x485660
jmp 0x485640
mov eax, dword [ecx + 4]
test eax, 0x1000
je 0x485660
test eax, 0x40000
je 0x485659
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 4]
jmp 0x48565c
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x485640
mov al, byte [ebp + 0xc]
and al, 0xc0
neg al
sbb al, al
and byte [esp + 0xf], al
cmp esi, 0xffffffff
jl 0x485688
cmp byte [ecx], 0x9e
jne 0x4856dd
mov eax, dword [esp + 0x44]
cmp dword [ecx + 0x1c], eax
jne 0x4856dd
movsx eax, word [ecx + 0x20]
cmp eax, esi
jmp 0x4856a5
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + 0x28]
push dword [esp + 0x44]
mov edx, dword [eax + edx + 4]
call fcn.00449d50
add esp, 4
test eax, eax
jne 0x4856dd
cmp esi, 0xffffffff
je 0x4856f5
mov eax, dword [esp + 0x28]
mov edx, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call fcn.00442590
test eax, eax
jne 0x4856c4
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [edx + ecx*4]
mov ecx, dword [eax]
call fcn.0040f220
test eax, eax
je 0x4856f1
inc edi
add ebx, 0x18
cmp byte [esp + 0xf], 0
je 0x485728
mov esi, dword [esp + 0x34]
jmp 0x485600
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
inc eax
test byte [ebp + 0xc], 0x40
mov word [ecx + 0x1e], ax
jne 0x485796
cmp byte [esp + 0x1b], 0
lea eax, [edi + edi*2]
je 0x48575a
mov cl, byte [esp + 0x19]
xor cl, byte [esp + 0x1a]
mov edx, dword [esp + 0x4c]
cmp cl, byte [edx + eax*8 + 0x10]
je 0x485796
mov esi, dword [esp + 0x24]
test esi, esi
je 0x48573b
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp esi, eax
jge 0x485740
mov byte [esp + 0x1c], 0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
test cl, cl
je 0x4857f0
mov byte [esp + 0x1c], 1
jmp 0x4857fb
mov ecx, dword [esp + 0x4c]
mov dl, byte [ecx + eax*8 + 0x10]
xor dl, byte [esp + 0x19]
mov byte [esp + 0x1a], dl
je 0x485791
mov eax, dword [esp + 0x40]
xor ecx, ecx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [esp + 0x90]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x1b], 1
mov edx, dword [esp + 0x38]
movzx edx, dl
cmp esi, 0xffffffff
mov eax, 1
cmove edx, eax
xor eax, eax
bts eax, edi
xor ecx, ecx
cmp edi, 0x20
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x14]
cmovae ecx, eax
xor eax, ecx
cmp edi, 0x40
cmovae ecx, eax
or dword [esp + 0x10], eax
or edx, ecx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x24]
add dword [esp + 0x30], 0x18
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, dword [esp + 0x78]
jge 0x485744
mov esi, dword [esp + 0x2c]
jmp 0x485506
cmp byte [esp + 0x1c], 0
je 0x48592f
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x60]
or eax, dword [ecx + 8]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x64]
or eax, dword [ecx + 0xc]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x34], eax
test ebx, ebx
jle 0x485937
mov ebx, dword [esp + 0x4c]
add ebx, 4
mov dword [esp + 0x38], ebx
xor esi, esi
bts esi, eax
xor edi, edi
cmp eax, 0x20
cmovae edi, esi
xor esi, edi
cmp eax, 0x40
cmovae edi, esi
mov ecx, esi
and ecx, dword [esp + 0x10]
mov eax, edi
and eax, edx
or ecx, eax
jne 0x485913
mov ebx, dword [ebx]
test ebx, ebx
je 0x485880
mov ecx, dword [esp + 0x28]
mov edx, ebx
lea ecx, [ecx + 0x1e8]
call fcn.004807d0
mov ecx, eax
or eax, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x30], edx
jne 0x4858e7
jmp 0x4858a2
xorps xmm0, xmm0
movlpd qword [esp + 0x98], xmm0
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x50], eax
mov byte [esp + 0xb4], 1
mov dword [esp + 0xa4], fcn.00444a50
mov dword [esp + 0xa8], 0x4449a0
mov dword [esp + 0xb8], 0
test ebx, ebx
je 0x4858e7
mov edx, ebx
lea ecx, [esp + 0xa0]
call fcn.0043fd10
cmp byte [esp + 0xb4], 0
je 0x48590f
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
not ecx
and ecx, dword [esp + 0x50]
not eax
and eax, dword [esp + 0x30]
or ecx, eax
jne 0x485913
or dword [esp + 0x10], esi
or edx, edi
mov dword [esp + 0x14], edx
jmp 0x485913
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
add dword [esp + 0x38], 0x18
mov ebx, dword [esp + 0x38]
inc eax
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x48]
jl 0x485832
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
inc dword [esp + 0x40]
cmp byte [esp + 0x1c], 0
jne 0x485290
jmp 0x485956
cmp byte [ecx + 0x1d], 0
jne 0x485964
mov eax, dword [esp + 0x5c]
cmp esi, dword [esp + 0x74]
jne 0x485980
cmp edx, eax
jne 0x485980
mov al, byte [esp + 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x1c], 0
jne 0x4859e7
dec ebx
test ebx, ebx
jle 0x4851d0
mov edi, dword [esp + 0x14]
xor ecx, ecx
mov eax, ebx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
add ecx, 0xffffffff
adc edx, 0xffffffff
mov eax, ecx
and eax, esi
mov esi, edx
and esi, edi
cmp eax, ecx
jne 0x4859c1
cmp esi, edx
je 0x4859d0
dec ebx
test ebx, ebx
jle 0x4851d0
mov esi, dword [esp + 0x10]
jmp 0x485994
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebx
xor ecx, esp
or al, 0xff
call fcn.004fcf30
mov esp, ebp
pop ebp
ret