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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x34], ebx
mov ecx, dword [ebx + 0x1c]
mov edi, dword [ebx]
call fcn.00406554
test eax, eax
jne 0x40610f
xor esi, esi
inc eax
mov dword [esp + 0xbc], eax
cmp dword [edi + 0x24], esi
jne 0x40610d
mov ebx, dword [edi + 0x34]
mov edx, dword [edi + 0x30]
mov ecx, edx
push ebx
push edx
push esi
add ecx, eax
mov dword [esp + 0x9c], edx
push esi
mov eax, ebx
mov dword [edi + 0x30], ecx
push esi
adc eax, esi
mov dword [esp + 0xa0], ebx
push esi
lea edx, [esp + 0x38]
mov dword [edi + 0x34], eax
mov ecx, edi
call fcn.004053f0
mov ecx, eax
mov dword [esp + 0x44], esi
mov eax, dword [edi + 0x70]
xorps xmm0, xmm0
mov dword [esp + 0xc], ecx
mov ebx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x38], esi
movlpd qword [esp + 0x48], xmm0
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
test ecx, ecx
jne 0x405a15
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x405a03
mov ebx, dword [esp + 0x34]
xor eax, eax
mov esi, dword [edi + 0x64]
sub esi, dword [edi + 0x60]
xor edx, edx
movlpd qword [esp + 0x68], xmm0
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x3c], esi
test eax, eax
jne 0x40566a
mov eax, dword [edi]
mov ecx, dword [edi + 0x14]
add eax, 0x10
push eax
push ecx
call dword [ecx]
mov dword [esp + 0x40], eax
test eax, eax
je 0x40585f
and dword [eax], 0
mov edx, dword [esp + 0x14]
test edx, edx
je 0x405665
mov dword [edx], eax
jmp 0x405668
mov dword [ebx + 8], eax
xor edx, edx
lea ecx, [eax + 0x10]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x28], ecx
test esi, esi
je 0x40569d
mov eax, dword [edi + 0x60]
mov ebx, esi
add eax, 0x10
mov dword [esp + 0x10], esi
add eax, dword [edi + 0x5c]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
jmp 0x40577f
mov eax, dword [edi]
mov edx, ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x80]
push eax
call fcn.004011aa
mov ebx, dword [esp + 0x80]
add dword [esp + 0x10], ebx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
push 0
pop esi
adc edx, esi
mov dword [esp + 0xc], eax
cmp dword [esp + 0x14], esi
mov dword [esp + 0x1c], edx
cmove ecx, ebx
add dword [edi + 0x68], ebx
mov dword [esp + 0x38], ecx
adc dword [edi + 0x6c], esi
xor ecx, ecx
cmp ebx, dword [edi]
setne cl
mov dword [esp + 0x18], ecx
je 0x4056fe
xor ecx, ecx
inc ecx
mov dword [edi + 0x70], ecx
jmp 0x405701
xor ecx, ecx
inc ecx
test eax, eax
je 0x405719
mov dword [edi + 0x48], eax
mov esi, ecx
xor eax, eax
mov dword [edi + 0x70], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], eax
jmp 0x40571d
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov eax, edx
sub ecx, dword [esp + 0x7c]
sbb eax, dword [esp + 0x78]
mov dword [esp + 0x6c], eax
jne 0x405738
xor eax, eax
inc eax
cmp ecx, eax
jb 0x40577f
push dword [esp + 0x8c]
xor eax, eax
lea edx, [esp + 0x24]
push dword [esp + 0x94]
mov ecx, edi
push eax
push eax
push eax
push eax
call fcn.004053f0
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x4059ca
cmp dword [esp + 0x20], eax
jne 0x4059c6
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], edx
xor eax, eax
mov dword [esp + 0xcc], esi
cmp dword [esp + 0x14], eax
lea ecx, [esp + 0xc0]
push ecx
mov ecx, dword [esp + 0x38]
sete al
mov dword [esp + 0xc4], eax
xor esi, esi
mov eax, dword [esp + 0x2c]
inc esi
mov dword [esp + 0xc8], eax
push dword [ecx + 4]
mov eax, dword [edi + 0x18]
push dword [edi + 0x1c]
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xe0], esi
call dword [eax]
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x70], esi
mov dword [esp + 0x24], eax
cmp edx, esi
je 0x405992
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x405819
push dword [esp + 0xc8]
push dword [esp + 0x2c]
push dword [esp + 0x7c]
call fcn.0041be20
mov ecx, dword [esp + 0xd4]
add esp, 0xc
add dword [edi + 0x60], ecx
mov edx, dword [esp + 0xd0]
jmp 0x405820
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x18]
test edx, edx
jne 0x4058b5
test eax, eax
jne 0x4058c4
cmp ecx, ebx
jne 0x405881
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
mov dword [esp + 0x40], eax
test esi, esi
je 0x40563a
mov esi, edx
mov dword [edi + 0x60], edx
mov dword [edi + 0x64], edx
jmp 0x405636
xor esi, esi
inc esi
mov eax, esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x18], eax
xor edx, edx
mov dword [esp + 0x30], edx
mov ebx, edx
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0xc]
jmp 0x4059da
xor edx, edx
push 0xb
pop ecx
mov dword [esp + 0xc], ecx
mov ebx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x14], edx
xor eax, eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], eax
lea esi, [eax + 1]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], esi
jmp 0x405b0f
cmp edx, 3
cmove eax, dword [esp + 0xbc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], 1
cmp ecx, ebx
jne 0x4058e4
xor esi, esi
mov dword [edi + 0x60], esi
mov dword [edi + 0x64], esi
mov dword [esp + 0x30], esi
mov ebx, esi
mov dword [esp + 0x2c], esi
jmp 0x405878
cmp edx, 3
jne 0x40591e
mov edx, dword [esp + 0x28]
sub ebx, ecx
add edx, ecx
mov dword [esp + 0x30], edx
xor edx, edx
test esi, esi
setne dl
sub dword [esp + 0x10], ebx
mov dword [esp + 0x2c], edx
sbb dword [esp + 0x1c], 0
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x14], 0
cmove edx, ecx
mov dword [esp + 0x38], edx
jmp 0x405878
test esi, esi
je 0x40592e
xor esi, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], esi
jmp 0x405977
mov ecx, edi
call fcn.00405507
mov ecx, eax
test ecx, ecx
jne 0x405947
inc ecx
mov eax, ecx
mov dword [esp + 0x64], ecx
jmp 0x405868
mov eax, dword [esp + 0xc8]
sub ebx, eax
sub dword [esp + 0x10], ebx
push 0
pop esi
sbb dword [esp + 0x1c], esi
add eax, dword [esp + 0x28]
push ebx
push eax
push ecx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x60], esi
call fcn.0041be20
mov ecx, dword [esp + 0xd4]
add esp, 0xc
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x14], 0
cmove eax, ecx
mov dword [esp + 0x38], eax
mov eax, esi
mov dword [esp + 0x18], eax
jmp 0x4058d8
cmp dword [esp + 0x3c], 0
mov eax, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x94], esi
je 0x4059b9
push ebx
push dword [esp + 0x2c]
push dword [esp + 0x7c]
call fcn.0041be20
add esp, 0xc
mov eax, esi
xor edx, edx
mov dword [edi + 0x60], edx
mov dword [edi + 0x64], edx
jmp 0x40586e
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x30], eax
mov ebx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
test ecx, ecx
jne 0x405a25
push dword [esp + 0x8c]
lea edx, [esp + 0x24]
mov ecx, edi
push dword [esp + 0x94]
call fcn.0040539c
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
jmp 0x405a25
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], edx
jmp 0x405a29
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x14], edx
test ecx, ecx
jne 0x405898
cmp dword [esp + 0x44], edx
je 0x405a70
test esi, esi
jne 0x405898
mov esi, dword [esp + 0x34]
mov eax, dword [edi + 0x18]
push dword [esi + 4]
push dword [edi + 0x1c]
call dword [eax + 4]
mov edx, eax
mov dword [esp + 0x14], edx
test edx, edx
je 0x405a81
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x44], eax
inc eax
mov dword [esp + 0x18], eax
jmp 0x405a74
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x20], 0
jne 0x405898
jmp 0x405a85
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], edx
test eax, eax
jne 0x405b07
mov ecx, dword [edi + 0x58]
mov eax, ecx
cmp ecx, dword [edi + 0x54]
jae 0x405ade
cmp dword [esp + 0x24], edx
je 0x405ade
lea eax, [ecx + 5]
imul ecx, eax, 0x28
add ecx, edi
call fcn.004052e6
mov ecx, eax
mov eax, dword [edi + 0x58]
test ecx, ecx
jne 0x405ac2
inc eax
mov dword [edi + 0x58], eax
jmp 0x405ade
xor edx, edx
inc edx
cmp eax, edx
jne 0x405adb
mov esi, edx
mov dword [esp + 0x7c], ecx
xor eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x44], eax
jmp 0x405b0b
mov dword [edi + 0x54], eax
mov ecx, dword [esi + 4]
inc ecx
cmp ecx, eax
sbb eax, eax
and eax, ecx
add eax, 5
imul esi, eax, 0x28
add esi, edi
mov dword [esp + 0x80], esi
lea ecx, [esi + 0x1c]
call fcn.004065de
test eax, eax
jne 0x40610f
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x98], xmm0
test ecx, ecx
jne 0x405e92
test eax, eax
je 0x405e92
test esi, esi
jne 0x405e92
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x48], xmm0
mov eax, dword [edx + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add dword [esp + 0x58], edx
adc dword [esp + 0x5c], 0
xor edx, edx
inc edx
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x58], ecx
jne 0x405bcc
cmp dword [esp + 0x5c], eax
jne 0x405bcc
mov dword [esp + 0x84], 1
jmp 0x405bd4
and dword [esp + 0x84], 0
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xb4], eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x78], ecx
mov ecx, dword [edi + 0x18]
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0xb0], esi
push eax
push dword [esp + 0x90]
mov eax, dword [esp + 0x34]
push dword [esp + 0x24]
add eax, 0x10
mov dword [esp + 0xcc], ebx
push eax
push dword [edx + 4]
push dword [edi + 0x1c]
call dword [ecx + 8]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x405e7b
cmp dword [esp + 0x88], eax
jne 0x405eb2
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
cmp ecx, dword [esp + 0x10]
jne 0x405c85
cmp eax, dword [esp + 0x1c]
je 0x405eb2
sub ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x9c]
sbb eax, dword [esp + 0x40]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x98]
sub eax, dword [esp + 0x54]
sbb edx, dword [esp + 0x28]
cmp dword [esp + 0x84], 0
ja 0x405cc4
jb 0x405cbb
cmp ecx, 1
jae 0x405cc4
test edx, edx
jne 0x405cc4
cmp eax, 1
jb 0x405d1d
push dword [esp + 0x8c]
push dword [esp + 0x94]
push edx
push eax
push dword [esp + 0x94]
lea edx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.004053f0
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x405eb2
cmp dword [esp + 0x20], eax
jne 0x405eb2
mov esi, dword [esp + 0x98]
mov eax, dword [esp + 0x58]
mov ebx, eax
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x9c]
jmp 0x405d31
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x40], edx
mov edx, dword [edi]
mov dword [esp + 0x28], esi
mov ecx, dword [ecx]
mov esi, dword [esp + 0xa8]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x74]
sub ecx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x78]
sbb eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x10], ecx
xor ecx, ecx
cmp ecx, eax
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0xb8]
mov eax, edx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], edx
jb 0x405b94
ja 0x405de9
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x14], eax
mov eax, edx
jbe 0x405b94
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0xa8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
jmp 0x405b98
push dword [esp + 0x8c]
mov ecx, edi
push dword [esp + 0x94]
call fcn.004054b7
jmp 0x405eb2
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x20]
call fcn.00406554
test eax, eax
jne 0x40610f
mov eax, dword [esp + 0x70]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x24], eax
inc ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x68], ecx
cmp dword [edi + 0x24], edx
jne 0x40610d
cmp dword [edi + 0x50], edx
je 0x405ef1
mov eax, ecx
mov dword [esp + 0x20], eax
jmp 0x405f50
test esi, esi
je 0x405f0a
mov dword [edi + 0x50], ecx
cmp esi, 2
mov ecx, dword [esp + 0x64]
push 1
mov dword [edi + 0x4c], esi
pop esi
cmove ecx, esi
jmp 0x405f11
mov ecx, dword [esp + 0x64]
xor esi, esi
inc esi
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x405f23
mov dword [edi + 0x50], esi
mov dword [edi + 0x40], eax
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x405f36
xor ecx, ecx
mov dword [esp + 0x24], edx
inc ecx
mov dword [edi + 0x50], ecx
mov dword [edi + 0x38], ecx
jmp 0x405f39
xor ecx, ecx
inc ecx
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x94], edx
je 0x405f50
mov dword [edi + 0x50], ecx
mov dword [edi + 0x3c], ecx
mov dword [esp + 0x24], edx
cmp dword [esp + 0x44], edx
je 0x405fa9
test eax, eax
je 0x405f6c
xorps xmm0, xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x98], xmm0
mov esi, dword [esp + 0x58]
sub esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x5c]
sbb edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x98]
sub ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x9c]
sbb eax, dword [esp + 0x28]
push eax
push ecx
push edx
push esi
lea ecx, [edi + 0x98]
call fcn.00405237
mov dword [esp + 0xc], eax
xor edx, edx
jmp 0x405fad
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
xor ecx, ecx
test esi, esi
sete cl
cmp dword [esp + 0x70], 0
mov dword [esp + 0xa4], ecx
je 0x406045
test eax, eax
jne 0x405fdb
cmp dword [esp + 0x24], eax
je 0x405fdb
cmp dword [esp + 0x20], eax
jne 0x405fdb
lea ecx, [eax + 1]
jmp 0x405fdd
mov ecx, edx
mov eax, dword [edi + 0x18]
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0xa8]
push edx
push dword [esp + 0x34]
push ebx
push dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
push ecx
push dword [ebx + 4]
push dword [edi + 0x1c]
call dword [eax + 0xc]
mov dword [esp + 0xc], eax
test eax, eax
je 0x406018
xor eax, eax
inc eax
mov dword [esp + 0x48], eax
mov dword [edi + 0x50], eax
jmp 0x406027
mov ecx, dword [esp + 0xa4]
test ecx, ecx
jne 0x40604d
test esi, esi
jne 0x40604d
push dword [esp + 0x8c]
mov ecx, edi
push dword [esp + 0x94]
call fcn.004054b7
mov ecx, dword [esp + 0xa4]
jmp 0x406049
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x68], 0
je 0x4060ba
cmp dword [esp + 0x44], 0
je 0x406080
test eax, eax
jne 0x406080
cmp dword [edi + 0x50], eax
jne 0x406082
cmp dword [esp + 0x14], eax
jne 0x406082
cmp dword [esp + 0x20], eax
jne 0x406082
cmp dword [edi + 0x84], eax
jne 0x406093
cmp dword [esp + 0x48], eax
je 0x4060ba
jmp 0x406082
xor eax, eax
cmp dword [edi + 0x84], eax
jne 0x406093
mov eax, dword [ebx + 4]
mov dword [edi + 0x80], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
or eax, edx
jne 0x4060a3
test esi, esi
jne 0x4060ca
mov eax, dword [esp + 0x38]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
inc dword [edi + 0x84]
test esi, esi
jne 0x4060ca
mov ecx, dword [esp + 0x80]
add ecx, 0x20
jmp 0x4060f0
test ecx, ecx
je 0x4060df
lea ecx, [edi + 0xe8]
call fcn.004065de
test eax, eax
jne 0x40610f
jmp 0x4060ea
xor eax, eax
cmp dword [ebx + 4], eax
je 0x40610d
inc eax
mov dword [edi + 0x24], eax
lea ecx, [edi + 0xe4]
call fcn.004065de
test eax, eax
jne 0x40610f
mov ecx, dword [ebx + 0x1c]
call fcn.00406554
test eax, eax
jne 0x40610f
xor esi, esi
inc eax
jmp 0x40555c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret