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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov ebx, dword [ebp + 0x24]
mov edi, dword [ebp + 0x28]
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov ecx, dword [ebp + 0x20]
mov eax, 6
test ecx, ecx
js 0x4058d3
mov eax, ecx
mov esi, dword [ebp + 0x14]
mov ecx, ebx
or ecx, edi
jne 0x4058ec
xor edx, edx
test esi, esi
je 0x4058f0
mov ecx, eax
and ecx, 0x400
jne 0x4058f0
mov dx, 8
mov dword [esp + 0x54], edx
mov ecx, eax
xor ecx, 0xfffeffff
mov edx, eax
or edx, 0x10000
test edx, ecx
mov dword [esp + 8], edi
mov dword [esp + 0x24], ebx
jne 0x405921
mov ecx, dword [esp + 0x54]
movzx ecx, cx
or ecx, 0x800
mov dword [esp + 0x54], ecx
mov edx, dword [ebp + 8]
mov edi, eax
and edi, 0xf
sete cl
mov ebx, dword [edx + 0x48]
test ebx, ebx
je 0x405cc8
cmp dword [edx + 0x14], 2
jne 0x405cc8
mov dword [esp + 4], ebx
mov ebx, dword [ebp + 0xc]
test esi, esi
je 0x405963
test ebx, ebx
mov ebx, dword [esp + 4]
je 0x405cc8
cmp dword [ebp + 0x10], 0
jne 0x40596f
jmp 0x405cc8
test ebx, ebx
mov ebx, dword [esp + 4]
je 0x405cc8
cmp word [ebp + 0x1c], 0
setne dl
cmp dword [ebp + 0x18], 0
sete ch
test ch, dl
mov edx, dword [ebp + 8]
jne 0x405cc8
cmp edi, 0xb
jae 0x405cc8
mov esi, dword [ebx + 0x34]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x3c], esi
test esi, esi
je 0x4059b4
cmp edx, 0xffffffff
jne 0x4059da
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x405ccf
cmp dword [esp + 8], 0
jne 0x4059cb
mov dword [esp + 0x3c], 0
cmp edx, 0xffff
jne 0x4059da
mov dword [ebx + 0x34], 1
mov dword [esp + 0x3c], 1
mov edx, eax
shr edx, 0xa
and edx, 1
or cl, dl
movzx ebx, cl
test eax, 0x400
je 0x405a13
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0x2f
mov eax, dword [ebp + 8]
je 0x405aa4
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x98], eax
mov ebx, edi
jmp 0x405a8d
mov eax, dword [esp + 0x24]
or eax, dword [esp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
je 0x405a2f
mov dword [eax + 0x1c], 0x18
jmp 0x405ccf
cmp byte [ecx], 0x2f
je 0x405aa4
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ebx
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push 0
call fcn.00403690
add esp, 0xc
mov dword [esp + 0x98], eax
mov dword [esp + 8], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
mov ebx, 0
cmp esi, 4
jb 0x405a74
mov ebx, edi
mov eax, 1
jb 0x405a7f
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00408ce0
add esp, 4
cmp eax, 0x10000
mov esi, dword [esp + 4]
jb 0x405ab0
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x405ccf
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], eax
movzx edx, word [ebp + 0x1c]
mov dword [esp + 0xc], 0
mov ebx, 0xfffffffe
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
or ecx, eax
mov ecx, 0
je 0x405aff
mov ecx, eax
or ecx, ebx
mov esi, edx
mov edx, eax
and edx, 0xfffffffe
add ecx, edx
inc ecx
and ecx, dword [edi]
mov edx, 0xfffffffe
add edx, eax
inc edx
sub eax, ecx
and eax, edx
mov edx, esi
mov esi, dword [esp + 4]
mov ecx, eax
mov dword [esp + 0x50], ecx
mov esi, dword [esi + 4]
xor ecx, ecx
mov eax, esi
mov dword [esp + 0xa0], edx
add eax, edx
setb cl
mov edx, eax
add edx, dword [esp + 0x38]
mov dword [esp + 0x94], ecx
adc ecx, 0
add edx, 0x4a
adc ecx, 0
cmp ebx, edx
sbb dword [esp + 0xc], ecx
jae 0x405b43
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x405ccf
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x3c]
test edi, edi
mov edx, dword [ebp + 8]
jne 0x405b9d
mov ecx, dword [esp + 0x38]
mov esi, ecx
shr esi, 0x1f
add eax, dword [ebp + 0x38]
mov ebx, dword [esp + 0x94]
adc ebx, 0
add ecx, ecx
add eax, dword [ebp + 0x40]
adc ebx, 0
add eax, ecx
adc ebx, esi
add eax, dword [esp + 0x50]
adc ebx, 0
add eax, dword [edx]
adc ebx, dword [edx + 4]
add eax, 0x72
adc ebx, 0xffffffff
xor edi, edi
cmp ebx, 0xffffffff
je 0x405b9d
mov eax, dword [esp + 4]
mov dword [eax + 0x34], 1
mov edi, 1
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x38]
test ecx, ecx
mov esi, dword [ebp + 0x14]
je 0x405bd8
mov eax, dword [ebp + 0xc]
cmp byte [ecx + eax - 1], 0x2f
jne 0x405bd8
test esi, esi
jne 0x405cc8
mov dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x24]
or eax, dword [esp + 8]
jne 0x405cc8
mov edx, dword [esp + 4]
test edi, edi
je 0x405be5
mov edi, 0x1c
mov ebx, dword [esp + 0xa0]
lea eax, [ebx + ecx]
add eax, edi
add eax, 0x2e
mov ecx, eax
mov edi, dword [esp + 0xc]
and ecx, edi
xor eax, edi
lea eax, [eax + ecx*2]
mov ecx, edx
mov edx, dword [edx + 8]
cmp edx, eax
jae 0x405c45
mov ecx, 1
test edx, edx
je 0x405c15
mov ecx, edx
mov esi, ecx
add ecx, ecx
cmp esi, eax
jb 0x405c15
push esi
mov ebx, dword [esp + 8]
push dword [ebx + 0xc]
push dword [ebx]
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x405cd9
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov ecx, ebx
mov esi, dword [ebp + 0x14]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov edx, eax
and edx, 1
xor eax, 1
lea eax, [eax + edx*2]
cmp ecx, eax
jae 0x405c91
mov edx, 1
test ecx, ecx
je 0x405c65
mov edx, ecx
mov esi, edx
add edx, edx
cmp esi, eax
jb 0x405c65
push esi
mov ebx, dword [esp + 8]
push dword [ebx + 0x1c]
push dword [ebx + 0x10]
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x405cd9
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], esi
mov esi, dword [ebp + 0x14]
xor eax, eax
test esi, esi
mov edi, dword [esp + 0x18]
je 0x405ce2
cmp dword [esp + 0x14], 0
mov ecx, dword [ebp + 8]
jne 0x405ce5
push 0x4df40
push 1
push dword [ecx + 0x34]
mov eax, dword [ebp + 8]
call dword [eax + 0x28]
mov ecx, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x405ce5
mov dword [ecx + 0x1c], 0x10
jmp 0x405ccf
mov dword [edx + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [edi + 0x1c], 0x10
jmp 0x405ccf
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
mov esi, ecx
mov edx, edi
mov ebx, dword [esp + 0x50]
push ebx
mov edi, dword [esp + 0x14]
push edi
call fcn.004064c0
add esp, 8
test eax, eax
je 0x405de3
cmp dword [esp + 0x14], 0
sete dl
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
add esi, ebx
adc eax, 0
mov ecx, dword [esp + 0x18]
add ecx, ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], eax
adc edi, 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov word [esp + 0x90], 0
mov eax, dword [esp + 0x20]
or al, dl
mov dword [esp + 0x20], eax
movzx edx, al
shl edx, 3
mov dword [esp + 0x24], edx
mov eax, dword [esp + 4]
cmp dword [eax + 0x34], 0
je 0x405df5
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov dword [esp + 4], 0
mov eax, 0xfffffffe
cmp eax, edi
mov edx, 0
sbb edx, ebx
mov ecx, dword [esp + 0xc]
jb 0x405ef6
xor edx, edx
cmp eax, esi
sbb edx, ecx
jb 0x405ef6
xor eax, eax
mov edi, dword [ebp + 0x38]
jmp 0x405f4c
push dword [esp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
jmp 0x405ccf
cmp dword [esp + 0x44], 0
jne 0x4062c4
test edi, edi
jne 0x4062c4
mov dword [esp + 0x10], edi
mov edi, ecx
mov dword [esp + 0x74], 0x4034b50
mov eax, dword [esp + 0x20]
test al, al
je 0x405e20
mov al, 0x14
mov byte [esp + 0x78], al
mov ebx, dword [esp + 0x54]
movzx edx, bx
mov byte [esp + 0x7a], bl
mov byte [esp + 0x7b], dh
mov edx, dword [esp + 0x24]
mov byte [esp + 0x7c], dl
mov dword [esp + 0x7d], 0
mov dword [esp + 0x81], 0
mov dword [esp + 0x85], 0
mov dword [esp + 0x89], 0
mov byte [esp + 0x8d], 0
mov ebx, dword [esp + 0x38]
mov byte [esp + 0x8e], bl
mov byte [esp + 0x8f], bh
mov edx, dword [ebp + 0x38]
mov byte [esp + 0x90], dl
mov byte [esp + 0x91], dh
lea edx, [esp + 0x74]
push 0x1e
push edx
push dword [esp + 0x14]
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x4060dc
mov ecx, esi
mov esi, edi
lea eax, [edi + edi]
and eax, 0x3c
xor esi, 0x1e
add esi, eax
mov edi, dword [esp + 0x10]
adc edi, 0
push ebx
push dword [ebp + 0xc]
push edi
push esi
push dword [ecx + 0x44]
call dword [ecx + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x4060cc
add esi, ebx
adc edi, 0
mov dword [esp + 4], 0
xor ecx, ecx
mov eax, dword [ebp + 8]
mov ebx, edi
jmp 0x406056
xor edx, edx
cmp eax, esi
mov eax, 0
sbb eax, ecx
jb 0x405f07
xor eax, eax
jmp 0x405f0b
lea eax, [esp + 0x28]
mov ecx, 0xfffffffe
cmp ecx, edi
mov ecx, 0
sbb ecx, ebx
jb 0x405f22
mov esi, 0
jmp 0x405f26
lea esi, [esp + 0x40]
mov edi, dword [ebp + 0x38]
jae 0x405f2f
lea edx, [esp + 0x30]
lea ecx, [esp + 0xa8]
mov dword [esp + 4], ecx
push eax
push esi
call fcn.00406560
add esp, 8
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
lea edx, [eax + edi]
mov dword [esp + 0x74], 0x4034b50
mov eax, dword [esp + 0x20]
test al, al
je 0x405f65
mov al, 0x14
mov byte [esp + 0x78], al
mov byte [esp + 0x79], 0
movzx ebx, word [esp + 0x54]
mov byte [esp + 0x7a], bl
mov byte [esp + 0x7b], bh
mov ebx, dword [esp + 0x24]
mov byte [esp + 0x7c], bl
mov dword [esp + 0x7d], 0
mov dword [esp + 0x81], 0
mov dword [esp + 0x85], 0
mov dword [esp + 0x89], 0
mov byte [esp + 0x8d], 0
mov ebx, dword [esp + 0x38]
mov byte [esp + 0x8e], bl
mov byte [esp + 0x8f], bh
mov byte [esp + 0x90], dl
mov byte [esp + 0x91], dh
lea edx, [esp + 0x74]
push 0x1e
push edx
push ecx
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x4060dc
mov edi, dword [esp + 0x18]
add edi, 0x1e
mov eax, esi
mov esi, dword [esp + 0x10]
adc esi, 0
push ebx
push dword [ebp + 0xc]
push esi
push edi
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x4060cc
add edi, ebx
adc esi, 0
cmp dword [esp + 4], 0
mov ebx, esi
mov esi, edi
je 0x40605b
lea eax, [esp + 0xa8]
mov edi, dword [esp + 0xc]
push edi
push eax
push ebx
push esi
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x4060e8
mov ecx, edi
add esi, edi
adc ebx, 0
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x38]
jmp 0x40606d
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x38]
mov ecx, dword [esp + 0xc]
test edi, edi
mov dword [esp + 0xc], ecx
je 0x40608d
push edi
push dword [ebp + 0x34]
push ebx
push esi
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x4060e8
add esi, edi
adc ebx, 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4060f7
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push ebx
push esi
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x4060cc
add esi, edi
mov dword [esp + 0x18], esi
adc ebx, 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 0
jmp 0x4061c4
push dword [esp + 8]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x405ccf
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x405ccf
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], esi
cmp dword [ebp + 0x14], 0
je 0x4061c4
mov eax, dword [ebp + 8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x4c]
mov ecx, eax
cmp eax, 0xa
jl 0x406140
mov ecx, 0xa
xor eax, eax
mov edx, dword [esp + 0x4c]
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x43ea58]
test edx, edx
jne 0x40615f
or eax, 0x80000
lea ecx, [esp + 0x58]
push eax
push ecx
push 0x4065d0
mov esi, dword [esp + 0x14]
push esi
call fcn.00404bd0
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xa4], eax
lea eax, [esp + 0xa4]
push 4
push 0
push 0
push eax
push dword [ebp + 0x10]
push esi
call fcn.00403760
add esp, 0x18
cmp eax, 1
jne 0x4062d3
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
push dword [esp + 8]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov esi, ecx
mov dword [esp + 8], eax
or ecx, eax
je 0x4063d3
mov dword [esp + 0x58], 0x8074b50
mov edx, dword [esp + 0x98]
mov byte [esp + 0x5c], dl
mov byte [esp + 0x5d], dh
mov ecx, edx
shr ecx, 0x10
mov byte [esp + 0x5e], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x5f], cl
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
cmp dword [esp + 4], 0
je 0x4062c0
mov byte [esp + 0x60], cl
mov byte [esp + 0x61], ch
mov ebx, ecx
shr ebx, 0x10
mov byte [esp + 0x62], bl
mov ebx, edx
shr ebx, 0x10
shr ecx, 0x18
mov byte [esp + 0x63], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x64], dl
mov byte [esp + 0x65], dh
mov byte [esp + 0x66], bl
mov byte [esp + 0x67], cl
mov edx, esi
mov byte [esp + 0x68], dl
mov byte [esp + 0x69], dh
mov ecx, esi
shr ecx, 0x10
mov byte [esp + 0x6a], cl
mov ecx, esi
shr ecx, 0x18
mov byte [esp + 0x6b], cl
mov dword [esp + 0x50], 0x38
mov dword [esp + 0x4c], 0x30
mov ecx, 0x28
mov dword [esp + 0x14], 0x18
mov dword [esp + 0x20], 0x17
mov eax, dword [esp + 8]
mov edx, eax
mov byte [esp + 0x1f], al
mov dword [esp + 0x94], 0x16
mov dword [esp + 0x9c], 0x15
mov edi, 0x14
jmp 0x406339
test edx, edx
je 0x4062ef
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x405ccf
push dword [esp + 8]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x405ccf
mov dword [esp + 0x60], ecx
mov dword [esp + 0x50], 0x18
mov dword [esp + 0x4c], 0x10
mov ecx, 8
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x94], 0xe
mov edx, esi
mov byte [esp + 0x1f], dl
mov dword [esp + 0x9c], 0xd
mov edi, 0xc
mov dword [esp + 0x14], 0x10
mov edx, esi
mov ebx, dword [esp + 8]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x1f]
mov byte [esp + edi + 0x58], al
test cl, 0x20
jne 0x406354
mov ebx, edx
mov edx, esi
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 8]
shrd edx, eax, cl
mov edi, dword [esp + 0x9c]
mov byte [esp + edi + 0x58], bl
mov ebx, eax
shr ebx, cl
test cl, 0x20
jne 0x406377
mov ebx, edx
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 8]
shrd esi, eax, cl
mov edx, esi
mov esi, dword [esp + 0x94]
mov byte [esp + esi + 0x58], bl
shr eax, cl
test cl, 0x20
jne 0x406398
mov eax, edx
mov ecx, dword [esp + 0x20]
mov byte [esp + ecx + 0x58], al
lea eax, [esp + 0x58]
mov esi, dword [esp + 0x14]
push esi
push eax
push dword [esp + 0x18]
push dword [esp + 0x24]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x405ccf
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], eax
adc dword [esp + 0x10], 0
cmp dword [esp + 4], 0
je 0x406432
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x28]
mov eax, 0
sbb eax, dword [esp + 0x2c]
jb 0x4063f4
xor eax, eax
jmp 0x4063f8
lea eax, [esp + 0x28]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x30]
mov ecx, 0
sbb ecx, dword [esp + 0x34]
jb 0x406413
mov edi, 0
jmp 0x406417
lea edi, [esp + 0x40]
jae 0x40641d
lea edx, [esp + 0x30]
lea ecx, [esp + 0xa8]
push eax
push edi
call fcn.00406560
add esp, 8
mov dword [esp + 0xc], eax
movzx ebx, word [esp + 0x54]
movzx esi, word [esp + 0x24]
movzx eax, word [esp + 0xc]
movzx edi, word [esp + 0x38]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x44]
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0
push ebx
push esi
push dword [esp + 0xb8]
push dword [esp + 0x68]
push dword [esp + 0x68]
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0xd4]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x44]
push edi
call fcn.00406620
add esp, 0x48
test eax, eax
je 0x405ccf
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x405cd1