Function at 0x4055bb
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.004065e4
test eax, eax
jne 0x40619f
xor esi, esi
inc eax
mov dword [esp + 0xbc], eax
cmp dword [edi + 0x24], esi
jne 0x40619d
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.00405480
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 0x405aa5
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x405a93
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 0x4056fa
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 0x4058ef
and dword [eax], 0
mov edx, dword [esp + 0x14]
test edx, edx
je 0x4056f5
mov dword [edx], eax
jmp 0x4056f8
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 0x40572d
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 0x40580f
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.0040123a
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 0x40578e
xor ecx, ecx
inc ecx
mov dword [edi + 0x70], ecx
jmp 0x405791
xor ecx, ecx
inc ecx
test eax, eax
je 0x4057a9
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 0x4057ad
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 0x4057c8
xor eax, eax
inc eax
cmp ecx, eax
jb 0x40580f
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.00405480
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x405a5a
cmp dword [esp + 0x20], eax
jne 0x405a56
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 0x405a22
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x4058a9
push dword [esp + 0xc8]
push dword [esp + 0x2c]
push dword [esp + 0x7c]
call fcn.00422770
mov ecx, dword [esp + 0xd4]
add esp, 0xc
add dword [edi + 0x60], ecx
mov edx, dword [esp + 0xd0]
jmp 0x4058b0
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x18]
test edx, edx
jne 0x405945
test eax, eax
jne 0x405954
cmp ecx, ebx
jne 0x405911
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 0x4056ca
mov esi, edx
mov dword [edi + 0x60], edx
mov dword [edi + 0x64], edx
jmp 0x4056c6
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 0x405a6a
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 0x405b9f
cmp edx, 3
cmove eax, dword [esp + 0xbc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], 1
cmp ecx, ebx
jne 0x405974
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 0x405908
cmp edx, 3
jne 0x4059ae
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 0x405908
test esi, esi
je 0x4059be
xor esi, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], esi
jmp 0x405a07
mov ecx, edi
call fcn.00405597
mov ecx, eax
test ecx, ecx
jne 0x4059d7
inc ecx
mov eax, ecx
mov dword [esp + 0x64], ecx
jmp 0x4058f8
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.00422770
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 0x405968
cmp dword [esp + 0x3c], 0
mov eax, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x94], esi
je 0x405a49
push ebx
push dword [esp + 0x2c]
push dword [esp + 0x7c]
call fcn.00422770
add esp, 0xc
mov eax, esi
xor edx, edx
mov dword [edi + 0x60], edx
mov dword [edi + 0x64], edx
jmp 0x4058fe
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 0x405ab5
push dword [esp + 0x8c]
lea edx, [esp + 0x24]
mov ecx, edi
push dword [esp + 0x94]
call fcn.0040542c
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
jmp 0x405ab5
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], edx
jmp 0x405ab9
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 0x405928
cmp dword [esp + 0x44], edx
je 0x405b00
test esi, esi
jne 0x405928
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 0x405b11
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x44], eax
inc eax
mov dword [esp + 0x18], eax
jmp 0x405b04
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x20], 0
jne 0x405928
jmp 0x405b15
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], edx
test eax, eax
jne 0x405b97
mov ecx, dword [edi + 0x58]
mov eax, ecx
cmp ecx, dword [edi + 0x54]
jae 0x405b6e
cmp dword [esp + 0x24], edx
je 0x405b6e
lea eax, [ecx + 5]
imul ecx, eax, 0x28
add ecx, edi
call fcn.00405376
mov ecx, eax
mov eax, dword [edi + 0x58]
test ecx, ecx
jne 0x405b52
inc eax
mov dword [edi + 0x58], eax
jmp 0x405b6e
xor edx, edx
inc edx
cmp eax, edx
jne 0x405b6b
mov esi, edx
mov dword [esp + 0x7c], ecx
xor eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x44], eax
jmp 0x405b9b
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.0040666e
test eax, eax
jne 0x40619f
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 0x405f22
test eax, eax
je 0x405f22
test esi, esi
jne 0x405f22
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 0x405c5c
cmp dword [esp + 0x5c], eax
jne 0x405c5c
mov dword [esp + 0x84], 1
jmp 0x405c64
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 0x405f0b
cmp dword [esp + 0x88], eax
jne 0x405f42
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
cmp ecx, dword [esp + 0x10]
jne 0x405d15
cmp eax, dword [esp + 0x1c]
je 0x405f42
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 0x405d54
jb 0x405d4b
cmp ecx, 1
jae 0x405d54
test edx, edx
jne 0x405d54
cmp eax, 1
jb 0x405dad
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.00405480
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x405f42
cmp dword [esp + 0x20], eax
jne 0x405f42
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 0x405dc1
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 0x405c24
ja 0x405e79
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x14], eax
mov eax, edx
jbe 0x405c24
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 0x405c28
push dword [esp + 0x8c]
mov ecx, edi
push dword [esp + 0x94]
call fcn.00405547
jmp 0x405f42
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.004065e4
test eax, eax
jne 0x40619f
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 0x40619d
cmp dword [edi + 0x50], edx
je 0x405f81
mov eax, ecx
mov dword [esp + 0x20], eax
jmp 0x405fe0
test esi, esi
je 0x405f9a
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 0x405fa1
mov ecx, dword [esp + 0x64]
xor esi, esi
inc esi
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x405fb3
mov dword [edi + 0x50], esi
mov dword [edi + 0x40], eax
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x405fc6
xor ecx, ecx
mov dword [esp + 0x24], edx
inc ecx
mov dword [edi + 0x50], ecx
mov dword [edi + 0x38], ecx
jmp 0x405fc9
xor ecx, ecx
inc ecx
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x94], edx
je 0x405fe0
mov dword [edi + 0x50], ecx
mov dword [edi + 0x3c], ecx
mov dword [esp + 0x24], edx
cmp dword [esp + 0x44], edx
je 0x406039
test eax, eax
je 0x405ffc
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.004052c7
mov dword [esp + 0xc], eax
xor edx, edx
jmp 0x40603d
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 0x4060d5
test eax, eax
jne 0x40606b
cmp dword [esp + 0x24], eax
je 0x40606b
cmp dword [esp + 0x20], eax
jne 0x40606b
lea ecx, [eax + 1]
jmp 0x40606d
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 0x4060a8
xor eax, eax
inc eax
mov dword [esp + 0x48], eax
mov dword [edi + 0x50], eax
jmp 0x4060b7
mov ecx, dword [esp + 0xa4]
test ecx, ecx
jne 0x4060dd
test esi, esi
jne 0x4060dd
push dword [esp + 0x8c]
mov ecx, edi
push dword [esp + 0x94]
call fcn.00405547
mov ecx, dword [esp + 0xa4]
jmp 0x4060d9
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x68], 0
je 0x40614a
cmp dword [esp + 0x44], 0
je 0x406110
test eax, eax
jne 0x406110
cmp dword [edi + 0x50], eax
jne 0x406112
cmp dword [esp + 0x14], eax
jne 0x406112
cmp dword [esp + 0x20], eax
jne 0x406112
cmp dword [edi + 0x84], eax
jne 0x406123
cmp dword [esp + 0x48], eax
je 0x40614a
jmp 0x406112
xor eax, eax
cmp dword [edi + 0x84], eax
jne 0x406123
mov eax, dword [ebx + 4]
mov dword [edi + 0x80], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
or eax, edx
jne 0x406133
test esi, esi
jne 0x40615a
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 0x40615a
mov ecx, dword [esp + 0x80]
add ecx, 0x20
jmp 0x406180
test ecx, ecx
je 0x40616f
lea ecx, [edi + 0xe8]
call fcn.0040666e
test eax, eax
jne 0x40619f
jmp 0x40617a
xor eax, eax
cmp dword [ebx + 4], eax
je 0x40619d
inc eax
mov dword [edi + 0x24], eax
lea ecx, [edi + 0xe4]
call fcn.0040666e
test eax, eax
jne 0x40619f
mov ecx, dword [ebx + 0x1c]
call fcn.004065e4
test eax, eax
jne 0x40619f
xor esi, esi
inc eax
jmp 0x4055ec
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret