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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c4
mov eax, dword [0x490004]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
jne 0x40556d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.0042e653
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
mov dword [esp + 0xc], eax
test edi, edi
je 0x405abc
mov ebx, edi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x405587
sub ebx, ecx
je 0x405abc
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4055ad
push eax
call fcn.0044c7fe
add esp, 4
mov dword [esi + 0x5c], 0
sub esp, 8
mov edx, ebx
mov ecx, edi
call fcn.00405470
add esp, 8
mov dword [esi + 0x5c], eax
test eax, eax
je 0x405abc
cmp dword [esi + 0x14], 1
jne 0x4056e0
lea ecx, [esp + 0x10]
mov edx, eax
push ecx
push 0x100
push ecx
mov ecx, esi
call fcn.00404130
add esp, 0xc
test eax, eax
jne 0x4055fb
mov dword [esi + 0x58], 0xffffffff
lea edi, [eax - 3]
jmp 0x405a8e
mov edx, dword [esp + 0x10]
mov dword [esi + 0x58], edx
test edx, edx
jns 0x405610
mov edi, 0xfffffffd
jmp 0x405a8e
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x405626
cmp edx, dword [esi + 0x10]
jae 0x405626
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edx*4]
add eax, dword [ecx]
jmp 0x405628
xor eax, eax
push ecx
lea ecx, [esp + 0x5c]
push ecx
push eax
mov ecx, esi
call fcn.00403d60
add esp, 0xc
test eax, eax
jne 0x405645
lea edi, [eax - 3]
jmp 0x405a8e
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esi + 0x68], eax
mov eax, dword [esp + 0x88]
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x78]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x60]
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x98]
mov dword [esi + 0x6c], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esi + 0xa0], eax
mov ax, word [esp + 0x6e]
mov dword [esi + 0x64], ecx
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x7c], ecx
mov ecx, dword [esp + 0x9c]
mov word [esi + 0xa8], ax
mov eax, dword [esp + 0x94]
mov dword [esi + 0xa4], ecx
mov ecx, dword [esp + 0x74]
mov dword [esi + 0x4e008], eax
mov eax, dword [esp + 0x70]
mov dword [esi + 0x4e010], eax
mov dword [esi + 0x4e014], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.0042e653
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
xorps xmm0, xmm0
mov edx, dword [esi + 0x50]
mov ecx, dword [esi + 4]
and edx, 0xf
mov dword [esi + 0x58], eax
mov eax, dword [esi]
mov dword [esi + 0x78], eax
mov dword [esi + 0xa0], eax
mov eax, edx
mov dword [esi + 0x68], 0
neg eax
mov dword [esi + 0x6c], 0
mov dword [esi + 0x60], 0
sbb eax, eax
mov dword [esi + 0x64], 0
and eax, 8
mov dword [esi + 0x70], 0
mov dword [esi + 0x7c], ecx
mov dword [esi + 0xa4], ecx
movups xmmword [esi + 0x80], xmm0
mov dword [esp + 0x1c], edx
movq qword [esi + 0x90], xmm0
mov dword [esi + 0x98], 0
mov word [esi + 0x9c], 0
mov word [esi + 0xa8], ax
mov dword [esi + 0x4e008], 0
mov edi, dword [esi + 0x20]
mov eax, edi
or eax, dword [esi + 0x24]
jne 0x405777
xor edi, edi
jmp 0x405782
lea ecx, [edi - 1]
mov eax, ecx
and eax, dword [esi]
sub edi, eax
and edi, ecx
cmp dword [esi + 0x48], 0
mov dword [esp + 0x10], edi
je 0x405a89
cmp dword [esi + 0x14], 2
jne 0x405a89
test dword [esi + 0x50], 0x400
je 0x4057ad
mov edi, 0xfffffffb
jmp 0x405a8e
push dword [esi + 0x7c]
mov edx, edi
mov ecx, esi
push dword [esi + 0x78]
call fcn.00404e60
add esp, 8
test eax, eax
jne 0x4057cb
lea edi, [eax - 7]
jmp 0x405a8e
mov ecx, edi
mov eax, 0
add ecx, dword [esp + 0x20]
push 0
adc eax, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
call fcn.0044c796
add esp, 4
mov dword [esi + 0x4e010], eax
mov dword [esp + 0x20], eax
mov ecx, edx
lea eax, [esp + 0x20]
mov dword [esi + 0x4e014], edx
mov dword [esp + 0x24], ecx
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0044b8f3
add esp, 8
test eax, eax
je 0x405832
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], 0
jmp 0x40586f
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
shl ecx, 6
add ecx, dword [esp + 0x38]
sar eax, 1
shl ecx, 5
add ecx, eax
movzx eax, cx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
add eax, 0x301
shl ecx, 4
add eax, ecx
shl eax, 5
add eax, dword [esp + 0x40]
movzx eax, ax
mov dword [esp + 0xc], eax
cmp dword [esp + 0x18], 0
ja 0x405888
cmp dword [esp + 0x14], 0xffffffff
jae 0x405888
xor eax, eax
lea ecx, [esp + 0x4b4]
jmp 0x4058ef
lea edx, [esp + 0x28]
mov ecx, dword [edx]
mov eax, ecx
mov edx, dword [edx + 4]
shr eax, 8
mov byte [esp + 0x4b5], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x4b6], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x4b9], al
mov eax, edx
mov byte [esp + 0x4b4], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [esp + 0x4b8], dl
shr edx, 0x18
mov byte [esp + 0x4b7], cl
lea ecx, [esp + 0x4bc]
mov byte [esp + 0x4ba], al
mov eax, 8
mov byte [esp + 0x4bb], dl
push dword [esp + 0xc]
mov byte [esp + 0x4b6], al
lea edx, [esi + 0x80]
push dword [esp + 0x24]
shr eax, 8
mov byte [esp + 0x4bb], al
lea eax, [esp + 0x4b8]
sub ecx, eax
mov word [esp + 0x4b8], 1
movzx eax, word [esi + 0xa8]
push ecx
push eax
sub esp, 0x14
mov dword [esp + 0x38], ecx
push ecx
push ebx
call fcn.00404890
add esp, 0x2c
test eax, eax
jne 0x405947
lea edi, [eax - 7]
jmp 0x405a8e
add edi, dword [esi + 0x78]
mov ecx, 0
push 0x1e
adc ecx, dword [esi + 0x7c]
push edx
push ecx
mov dword [esi + 0xa4], ecx
push edi
mov dword [esi + 0xa0], edi
mov edi, dword [esi + 0x3c]
mov ecx, edi
push dword [esi + 0x44]
call dword [0x4751bc]
call edi
add esp, 0x14
cmp eax, 0x1e
je 0x405985
mov edi, 0xfffffff9
jmp 0x405a8e
mov eax, dword [esp + 0x10]
push ebx
push dword [esi + 0x5c]
add eax, 0x1e
add dword [esi + 0x78], eax
adc dword [esi + 0x7c], 0
push dword [esi + 0x7c]
mov edi, dword [esi + 0x3c]
mov ecx, edi
push dword [esi + 0x78]
push dword [esi + 0x44]
call dword [0x4751bc]
call edi
add esp, 0x14
cmp eax, ebx
je 0x4059be
mov edi, 0xfffffff8
jmp 0x405a8e
add dword [esi + 0x78], ebx
lea eax, [esp + 0x4b0]
mov ebx, dword [esp + 0x14]
adc dword [esi + 0x7c], 0
mov edi, dword [esi + 0x3c]
mov ecx, edi
push ebx
push eax
push dword [esi + 0x7c]
push dword [esi + 0x78]
push dword [esi + 0x44]
call dword [0x4751bc]
call edi
add esp, 0x14
cmp eax, ebx
je 0x4059f9
mov edi, 0xfffffff8
jmp 0x405a8e
add ebx, dword [esi + 0x78]
mov eax, 0
mov ecx, dword [esp + 0x1c]
adc eax, dword [esi + 0x7c]
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], eax
test ecx, ecx
je 0x4056c9
mov edi, 0xa
mov dword [esi + 0xbc], eax
cmp ecx, edi
mov dword [esi + 0xb0], esi
mov eax, ecx
mov dword [esi + 0xb8], ebx
cmova eax, edi
mov dword [esi + 0xc0], 0
mov edi, 3
mov dword [esi + 0xc4], 0
cmp edi, ecx
lea edx, [esi + 0xb0]
sbb ecx, ecx
and ecx, 0xffffc000
add ecx, 0x4000
or ecx, dword [eax*4 + 0x482138]
push ecx
push edx
lea ecx, [esi + 0xc8]
call fcn.00403ab0
add esp, 8
test eax, eax
je 0x4056c9
mov edi, 0xfffffff7
jmp 0x405a8e
mov edi, 0xfffffffc
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x405aa5
push eax
call fcn.0044c7fe
add esp, 4
mov dword [esi + 0x5c], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.0042e653
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x4cc]
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042e653
mov esp, ebp
pop ebp
ret