Function at 0x405cb7
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x28], esi
mov ecx, dword [esi + 0x1c]
mov edi, dword [esi]
call fcn.00408841
test eax, eax
jne 0x4067c2
mov dword [esp + 0x94], eax
cmp dword [edi + 0x24], eax
jne 0x4067c0
mov edx, dword [edi + 0x30]
xor eax, eax
mov ebx, dword [edi + 0x34]
inc eax
mov ecx, edx
mov dword [esp + 0x74], edx
add ecx, eax
mov dword [esp + 0x70], ebx
push ebx
mov eax, ebx
mov dword [edi + 0x30], ecx
adc eax, 0
mov ecx, edi
push edx
mov dword [edi + 0x34], eax
lea edx, [esp + 0x44]
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.00405b98
mov edx, dword [edi + 0x70]
xor ecx, ecx
mov ebx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x3c]
xorps xmm0, xmm0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x2c], ecx
movlpd qword [esp + 0x48], xmm0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x10], eax
test ebx, ebx
jne 0x40627d
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], ecx
test eax, eax
jne 0x40627d
mov ebx, dword [esi + 8]
mov esi, dword [edi + 0x64]
sub esi, dword [edi + 0x60]
xor edx, edx
movlpd qword [esp + 0x50], xmm0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x405dfd
mov eax, dword [edi]
mov ecx, dword [edi + 0x14]
add eax, 0x10
push eax
push ecx
call dword [ecx]
mov ebx, eax
mov dword [esp + 0x38], ebx
test ebx, ebx
je 0x406036
mov ecx, dword [esp + 0x30]
xor edx, edx
mov dword [ebx], edx
test ecx, ecx
je 0x405df6
mov dword [ecx], ebx
jmp 0x405dfd
mov eax, dword [esp + 0x28]
mov dword [eax + 8], ebx
lea eax, [ebx + 0x10]
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], eax
test esi, esi
je 0x405e30
mov eax, dword [edi + 0x60]
add eax, 0x10
mov dword [esp + 0x24], edx
add eax, dword [edi + 0x5c]
mov edx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
jmp 0x405f4f
mov ebx, dword [edi]
mov ecx, eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x14], edx
jmp 0x405e7f
lea edx, [esp + 0x64]
mov dword [esp + 0x64], ebx
push edx
push ecx
push eax
call dword [eax]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
add edx, eax
add ecx, eax
mov dword [esp + 0x14], edx
sub ebx, eax
mov dword [esp + 0x60], ecx
cmp dword [esp + 0x18], 0
jne 0x405ec2
test eax, eax
je 0x405e83
mov eax, dword [esp + 0x50]
test ebx, ebx
jne 0x405e45
xor ecx, ecx
mov dword [esp + 0x18], ecx
add dword [esp + 0x1c], edx
push 0
pop eax
adc dword [esp + 0x24], eax
mov eax, edx
cmp dword [esp + 0x30], 0
push 0
cmovne eax, dword [esp + 0x30]
add dword [edi + 0x68], edx
mov dword [esp + 0x30], eax
pop eax
adc dword [edi + 0x6c], eax
xor ebx, ebx
cmp edx, dword [edi]
setne bl
mov dword [esp + 0xc], ebx
je 0x405ec8
xor ebx, ebx
inc ebx
mov dword [edi + 0x70], ebx
jmp 0x405ecb
mov ecx, dword [esp + 0x18]
jmp 0x405e89
xor ebx, ebx
inc ebx
test ecx, ecx
je 0x405edd
mov dword [edi + 0x48], ecx
mov dword [edi + 0x70], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x24]
mov eax, ebx
sbb eax, dword [esp + 0x58]
mov dword [esp + 0x54], eax
jne 0x405efc
xor eax, eax
inc eax
cmp ecx, eax
jb 0x405f4b
push dword [esp + 0x70]
xor eax, eax
lea edx, [esp + 0x40]
push dword [esp + 0x78]
mov ecx, edi
push eax
push eax
push eax
push eax
call fcn.00405b98
mov edx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
test edx, edx
jne 0x4061b0
test eax, eax
jne 0x4061b0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x2c], eax
mov ebx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0xa0], edx
cmp dword [esp + 0x30], eax
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x2c]
sete al
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x10]
push dword [ecx + 4]
mov dword [esp + 0xac], eax
xor eax, eax
push dword [edi + 0x1c]
inc eax
mov dword [esp + 0xb8], eax
mov eax, dword [edi + 0x18]
call dword [eax]
mov ecx, dword [esp + 0xa8]
xor eax, eax
inc eax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x44], eax
xor eax, eax
inc eax
cmp ecx, eax
je 0x40617d
test esi, esi
je 0x405ff2
push dword [esp + 0xa0]
lea eax, [ebx + 0x10]
push dword [esp + 0x24]
push eax
call fcn.00a918f0
mov eax, dword [esp + 0xac]
add esp, 0xc
add dword [edi + 0x60], eax
mov ecx, dword [esp + 0xa8]
jmp 0x405ff9
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0xc]
test ecx, ecx
jne 0x406088
test edx, edx
jne 0x406097
cmp eax, dword [esp + 0x14]
jne 0x40605a
mov dword [esp + 0x30], ebx
mov ebx, dword [ebx]
mov dword [esp + 0x38], ebx
push ecx
pop edx
test esi, esi
je 0x405dc8
xor edx, edx
mov esi, edx
mov dword [edi + 0x60], edx
mov dword [edi + 0x64], edx
jmp 0x405dc8
xor ecx, ecx
inc ecx
mov edx, ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0xc], edx
xor esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
jmp 0x4061ca
xor ecx, ecx
mov dword [esp + 0x18], 0xb
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
xor edx, edx
mov dword [esp + 0x64], ecx
inc edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0xc], edx
jmp 0x406361
push 1
cmp ecx, 3
pop ebx
cmove edx, ebx
mov dword [esp + 0xc], edx
jmp 0x40609a
xor ebx, ebx
inc ebx
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x14]
cmp eax, ebx
jne 0x4060b0
xor esi, esi
mov dword [edi + 0x60], esi
mov dword [edi + 0x64], esi
jmp 0x406045
cmp ecx, 3
jne 0x4060ea
add dword [esp + 0x20], eax
xor ecx, ecx
sub ebx, eax
test esi, esi
push 0
setne cl
mov dword [esp + 0x18], ebx
sub dword [esp + 0x20], ebx
mov dword [esp + 0x38], ecx
pop ecx
sbb dword [esp + 0x24], ecx
cmp dword [esp + 0x30], 0
mov ecx, dword [esp + 0x2c]
cmove ecx, eax
mov eax, dword [esp + 0x10]
jmp 0x4061c2
test esi, esi
je 0x4060fa
xor esi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], esi
jmp 0x406159
mov ecx, dword [edi + 0x5c]
test ecx, ecx
jne 0x40611d
mov eax, dword [edi]
mov ecx, dword [edi + 0x14]
add eax, 0x10
push eax
push ecx
call dword [ecx]
mov ecx, eax
test ecx, ecx
je 0x406122
mov eax, dword [esp + 0xa0]
mov dword [edi + 0x5c], ecx
add ecx, 0x10
jne 0x406130
xor eax, eax
inc eax
mov edx, eax
mov dword [esp + 0x78], eax
jmp 0x40603f
sub ebx, eax
sub dword [esp + 0x1c], ebx
push 0
pop esi
sbb dword [esp + 0x24], esi
add eax, dword [esp + 0x20]
push ebx
push eax
push ecx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x60], esi
call fcn.00a918f0
mov eax, dword [esp + 0xac]
add esp, 0xc
cmp dword [esp + 0x30], 0
mov edx, esi
mov ecx, dword [esp + 0x2c]
cmove ecx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
jmp 0x4061c6
mov dword [esp + 0x90], eax
mov edx, eax
mov dword [esp + 0xc], edx
test esi, esi
je 0x4060a6
push dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
push dword [esp + 0x24]
push eax
call fcn.00a918f0
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x4060a6
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x40622d
lea esi, [edi + 0xb0]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
cmp dword [edi + 0x88], ecx
je 0x40620a
mov eax, dword [esp + 0x70]
cmp eax, dword [edi + 0x94]
jb 0x40620a
ja 0x406203
mov eax, dword [esp + 0x74]
cmp eax, dword [edi + 0x90]
jbe 0x40620a
xor eax, eax
lea ebx, [eax + 1]
jmp 0x40620c
mov ebx, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x3c], ebx
mov ebx, dword [edi + 0x9c]
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0x30], ecx
test ebx, ebx
jne 0x406074
cmp dword [esp + 0x40], ecx
je 0x406270
test eax, eax
jne 0x406074
push dword [esi + 4]
mov eax, dword [edi + 0x18]
push dword [edi + 0x1c]
call dword [eax + 4]
xor ecx, ecx
mov dword [esp + 0x30], eax
test eax, eax
je 0x40628f
xor eax, eax
mov dword [esp + 0x40], ecx
lea edx, [eax + 1]
mov dword [esp + 0xc], edx
cmp dword [esp + 0x10], 0
jne 0x406074
jmp 0x406293
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
jmp 0x406231
mov edx, dword [esp + 0xc]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], ecx
test edx, edx
jne 0x40635e
lea ebx, [edi + 0x58]
mov ecx, dword [ebx]
mov eax, ecx
cmp ecx, dword [edi + 0x54]
jae 0x40632b
cmp dword [esp + 0x44], edx
je 0x40632b
lea eax, [ecx + 5]
imul esi, eax, 0x28
add esi, edi
mov ecx, esi
call fcn.00405b19
test eax, eax
jne 0x406301
xor ecx, ecx
cmp dword [esi + 0x18], ecx
jne 0x4062f8
lea eax, [esp + 0xbc]
push eax
push ecx
push esi
push fcn.00406838
push ecx
push ecx
call fcn.00a955d3
add esp, 0x18
mov dword [esi + 0x18], eax
test eax, eax
jne 0x4062f8
call fcn.0040880f
test eax, eax
jne 0x406301
mov eax, ebx
mov eax, dword [eax]
inc eax
mov dword [ebx], eax
jmp 0x40632b
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, dword [ebx]
xor edx, edx
inc edx
cmp eax, edx
jne 0x406328
xor eax, eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x60], ecx
jmp 0x406365
mov dword [edi + 0x54], eax
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + 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 + 0x64], esi
lea ecx, [esi + 0x1c]
call fcn.0040885d
test eax, eax
jne 0x4067c2
mov eax, dword [esp + 0x40]
xor edx, edx
inc edx
jmp 0x406369
xor edx, edx
inc edx
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x28]
cmp dword [esp + 0x18], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x80], xmm0
jne 0x40652c
test eax, eax
je 0x40652c
cmp dword [esp + 0x30], 0
jne 0x40652c
mov esi, dword [esp + 0x54]
mov eax, edx
mov ebx, dword [ebx + 8]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x7c], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x58], esi
mov dword [esp + 0x38], ebx
test eax, eax
je 0x4063e0
mov esi, dword [esp + 0x2c]
jmp 0x406403
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
sub ebx, edx
mov esi, dword [edi]
sbb eax, ecx
cmp dword [esp + 0x94], eax
jb 0x4063ff
ja 0x4063fd
cmp esi, ebx
jbe 0x4063ff
mov esi, ebx
mov ebx, dword [esp + 0x38]
add edx, esi
mov dword [esp + 0x48], 1
push 0
pop eax
adc ecx, eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ecx
cmp edx, dword [esp + 0x1c]
jne 0x406427
cmp ecx, dword [esp + 0x24]
jne 0x406427
inc eax
mov ecx, dword [edi + 0x18]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x84]
push edx
lea edx, [esp + 0x70]
push edx
push eax
push esi
lea eax, [ebx + 0x10]
push eax
mov eax, dword [esp + 0x40]
push dword [eax + 4]
push dword [edi + 0x1c]
call dword [ecx + 8]
mov dword [esp + 0x30], eax
test eax, eax
jne 0x40651b
cmp dword [esp + 0x48], eax
jne 0x40654c
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
cmp edx, dword [esp + 0x1c]
jne 0x40647d
cmp ecx, dword [esp + 0x24]
je 0x40654c
mov esi, dword [esp + 0x80]
mov eax, edx
sub eax, dword [esp + 0x44]
mov ebx, ecx
sbb ebx, dword [esp + 0x7c]
sub esi, dword [esp + 0x58]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x84]
sbb ebx, dword [esp + 0x5c]
cmp dword [esp + 0x50], 0
ja 0x4064ba
jb 0x4064b1
cmp eax, 1
jae 0x4064ba
test ebx, ebx
jne 0x4064ba
cmp esi, 1
jb 0x40650e
push dword [esp + 0x70]
lea edx, [esp + 0x40]
mov ecx, edi
push dword [esp + 0x78]
push ebx
push esi
push dword [esp + 0x60]
push eax
call fcn.00405b98
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebx
test eax, eax
jne 0x40654c
test ebx, ebx
jne 0x40654c
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x44], edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x5c], eax
mov ebx, dword [esp + 0x38]
xor eax, eax
mov ebx, dword [ebx]
jmp 0x4063d2
push dword [esp + 0x70]
mov ecx, edi
push dword [esp + 0x78]
call fcn.00405c5f
jmp 0x40654c
mov eax, dword [esp + 0x54]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x20]
call fcn.00408841
test eax, eax
jne 0x4067c2
mov ebx, dword [esp + 0x88]
xor edx, edx
xor ecx, ecx
mov esi, edx
inc ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], ecx
cmp dword [edi + 0x24], edx
jne 0x4067c0
cmp dword [edi + 0x50], edx
je 0x406590
mov eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], eax
jmp 0x4065ed
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4065ad
mov dword [edi + 0x50], ecx
cmp eax, 2
mov ecx, dword [esp + 0x78]
push 1
mov dword [edi + 0x4c], eax
pop eax
cmove ecx, eax
jmp 0x4065b1
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4065c4
xor ebx, ebx
mov dword [edi + 0x40], eax
inc ebx
mov dword [edi + 0x50], ebx
mov ebx, edx
test ecx, ecx
je 0x4065d5
xor ecx, ecx
mov ebx, edx
inc ecx
mov dword [edi + 0x50], ecx
mov dword [edi + 0x38], ecx
jmp 0x4065d8
xor ecx, ecx
inc ecx
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x90], edx
je 0x4065ed
mov dword [edi + 0x50], ecx
mov ebx, edx
mov dword [edi + 0x3c], ecx
cmp dword [esp + 0x40], edx
je 0x406648
test eax, eax
je 0x406609
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x80], xmm0
mov esi, dword [esp + 0x68]
sub esi, dword [esp + 0x44]
mov edx, dword [esp + 0x6c]
sbb edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
sub ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x84]
sbb eax, dword [esp + 0x5c]
push eax
push ecx
push edx
push esi
lea ecx, [edi + 0x98]
call fcn.00405aac
mov esi, dword [esp + 0x48]
mov dword [esp + 0x18], eax
jmp 0x40664c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
xor ecx, ecx
test edx, edx
sete cl
cmp dword [esp + 0x88], 0
mov dword [esp + 0x8c], ecx
je 0x4066f4
test eax, eax
jne 0x406681
test ebx, ebx
mov ebx, dword [esp + 0x10]
je 0x406685
test ebx, ebx
jne 0x406685
lea ecx, [eax + 1]
jmp 0x406689
mov ebx, dword [esp + 0x10]
xor eax, eax
mov ecx, eax
mov eax, dword [edi + 0x18]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x90]
push edx
push dword [esp + 0x3c]
push dword [esp + 0x20]
push dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x40]
push dword [ecx + 4]
push dword [edi + 0x1c]
call dword [eax + 0xc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4066c5
xor eax, eax
inc eax
mov esi, eax
mov dword [edi + 0x50], eax
jmp 0x4066d8
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0xc]
test ecx, ecx
jne 0x4066fc
test edx, edx
jne 0x4066fc
push dword [esp + 0x70]
mov ecx, edi
push dword [esp + 0x78]
call fcn.00405c5f
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0xc]
jmp 0x4066f8
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x50], 0
je 0x406729
cmp dword [esp + 0x40], 0
je 0x40673a
test eax, eax
jne 0x40673a
cmp dword [edi + 0x50], eax
jne 0x40673c
cmp dword [esp + 0x30], eax
jne 0x40673c
test ebx, ebx
jne 0x40673c
cmp dword [edi + 0x84], eax
jne 0x406753
test esi, esi
jne 0x40673c
mov esi, dword [esp + 0x28]
test edx, edx
jne 0x406780
mov ecx, dword [esp + 0x64]
add ecx, 0x20
jmp 0x4067a6
xor eax, eax
cmp dword [edi + 0x84], eax
jne 0x406753
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 4]
mov dword [edi + 0x80], eax
jmp 0x406757
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
or eax, ebx
jne 0x406767
test edx, edx
jne 0x406780
mov eax, dword [esp + 0x2c]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
inc dword [edi + 0x84]
jmp 0x40672d
test ecx, ecx
je 0x406795
lea ecx, [edi + 0xe8]
call fcn.0040885d
test eax, eax
jne 0x4067c2
jmp 0x4067a0
xor eax, eax
cmp dword [esi + 4], eax
je 0x4067c0
inc eax
mov dword [edi + 0x24], eax
lea ecx, [edi + 0xe4]
call fcn.0040885d
test eax, eax
jne 0x4067c2
mov ecx, dword [esi + 0x1c]
call fcn.00408841
test eax, eax
jne 0x4067c2
jmp 0x405ce5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret