Function at 0x405740
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 edx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x28]
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edx
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 8], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov ecx, dword [ebp + 0x20]
mov eax, 6
test ecx, ecx
js 0x405793
mov eax, ecx
mov dword [esp + 0x54], edx
mov ecx, edx
or ecx, esi
je 0x4057a7
mov ecx, eax
and ecx, 0x400
jmp 0x4057bb
mov edx, eax
and edx, 0x400
xor ecx, ecx
cmp dword [ebp + 0x14], 0
je 0x4057c1
test edx, edx
jne 0x4057c1
mov edx, ecx
mov cx, 8
test eax, 0x10000
mov dword [esp + 0x14], esi
jne 0x4057d5
movzx ecx, cx
or ecx, 0x800
mov dword [esp + 0x90], ecx
mov ebx, eax
and ebx, 0xf
sete cl
mov dword [esp + 0x3c], edx
test edx, edx
setne dl
mov esi, dword [edi + 0x48]
mov dword [esp + 0xc], esi
test esi, esi
je 0x405aa8
cmp dword [edi + 0x14], 2
jne 0x405aa8
cmp dword [ebp + 0x14], 0
sete ch
cmp dword [ebp + 0x10], 0
setne dh
cmp dword [ebp + 0xc], 0
je 0x405aa8
or dh, ch
je 0x405aa8
cmp word [ebp + 0x1c], 0
setne ch
cmp dword [ebp + 0x18], 0
sete dh
test dh, ch
jne 0x405aa8
cmp ebx, 0xb
jae 0x405aa8
mov esi, dword [esp + 0xc]
mov esi, dword [esi + 0x34]
mov dword [esp + 4], esi
mov esi, dword [edi + 0x10]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 4]
test esi, esi
je 0x405877
cmp dword [esp + 0x38], 0xffffffff
mov esi, dword [esp + 0x14]
jne 0x4058aa
mov dword [edi + 0x1c], 2
jmp 0x405aaf
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x405893
mov dword [esp + 4], 0
cmp edi, 0xffff
jne 0x4058aa
mov esi, dword [esp + 0xc]
mov dword [esi + 0x34], 1
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 1
mov edi, dword [esp + 0x54]
or edi, esi
je 0x4058c8
cmp dword [esp + 0x3c], 0
jne 0x4058c8
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
jmp 0x405aaf
mov edi, dword [ebp + 0xc]
cmp byte [edi], 0x2f
mov edi, dword [ebp + 8]
je 0x405952
or cl, dl
movzx ecx, cl
mov dword [esp + 0x14], ecx
mov ecx, eax
xor ecx, 0xfffffbff
or eax, 0x400
test eax, ecx
je 0x4058fa
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebx
jmp 0x405940
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push 0
call fcn.00403320
add esp, 0xc
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov eax, 0
cmp esi, 4
jb 0x405927
mov eax, ebx
mov dword [esp + 0x34], eax
mov eax, 1
jb 0x405936
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], esi
mov dword [esp + 0x14], eax
xor esi, esi
push dword [ebp + 0xc]
call fcn.00408e60
add esp, 4
cmp eax, 0x10000
jb 0x40595e
mov dword [edi + 0x1c], 0x19
jmp 0x405aaf
mov ebx, dword [edi + 0x20]
xor ecx, ecx
mov edx, dword [edi + 0x24]
or edx, ebx
mov edx, 0
je 0x40597c
lea edx, [ebx - 1]
mov edi, dword [edi]
and edi, edx
sub ebx, edi
and ebx, edx
mov edx, ebx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0xc]
mov edi, dword [edx + 4]
xor edx, edx
mov dword [esp + 0x50], eax
mov ebx, eax
mov dword [esp + 0x1c], edi
add ebx, edi
setb dl
add ebx, 0x4a
adc edx, 0
movzx eax, word [ebp + 0x1c]
mov edi, ebx
and edi, eax
add edi, edi
mov dword [esp + 0x94], eax
xor ebx, eax
add ebx, edi
adc edx, 0
mov eax, 0xfffffffe
cmp eax, ebx
sbb ecx, edx
jae 0x4059d0
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x405aaf
cmp dword [esp + 4], 0
mov edi, dword [ebp + 8]
jne 0x405a3e
mov eax, dword [esp + 0x50]
mov ebx, eax
shr ebx, 0x1f
mov dword [esp + 4], 0
mov edx, dword [esp + 0x94]
add edx, dword [ebp + 0x38]
mov ecx, 0
adc ecx, 0xffffffff
add edx, dword [ebp + 0x40]
adc ecx, 0
lea edi, [eax + eax]
add edx, edi
mov edi, dword [ebp + 8]
adc ecx, ebx
add edx, dword [esp + 0x4c]
adc ecx, 0
add edx, dword [esp + 0x1c]
adc ecx, 0
add edx, dword [edi]
adc ecx, dword [edi + 4]
add edx, 0x72
adc ecx, 0
cmp ecx, 0xffffffff
je 0x405a3e
mov eax, dword [esp + 0xc]
mov dword [eax + 0x34], 1
mov dword [esp + 4], 1
xor edx, edx
mov eax, dword [esp + 0x50]
test eax, eax
je 0x405a63
mov ecx, dword [ebp + 0xc]
cmp byte [eax + ecx - 1], 0x2f
jne 0x405a63
cmp dword [ebp + 0x14], 0
jne 0x405aa8
mov edx, 0x10
or dword [esp + 0x54], esi
jne 0x405aa8
mov dword [esp + 0x54], edx
lea ecx, [eax + 0x2e]
mov edx, ecx
mov eax, dword [esp + 0x94]
and edx, eax
xor ecx, eax
lea ecx, [ecx + edx*2]
mov eax, dword [esp + 4]
test eax, eax
je 0x405a87
mov eax, 0x1c
add ecx, dword [esp + 0x1c]
add ecx, eax
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 8]
cmp eax, ecx
mov edx, dword [ebp + 0x14]
jae 0x405af8
mov esi, 1
test eax, eax
je 0x405ad1
mov esi, eax
jmp 0x405ad1
mov dword [edi + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, esi
and eax, 2
mov edx, esi
or esi, 2
imul esi, eax
xor eax, 2
and edx, 0xfffffffd
imul edx, eax
add esi, edx
cmp esi, ecx
jb 0x405ab9
push esi
mov ebx, dword [esp + 0x10]
push dword [ebx + 0xc]
push dword [ebx]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x405c78
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov edx, dword [ebp + 0x14]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
inc eax
cmp ecx, eax
jae 0x405b51
mov esi, 1
test ecx, ecx
je 0x405b28
mov esi, ecx
jmp 0x405b28
mov ecx, esi
and ecx, 2
mov edx, esi
or esi, 2
imul esi, ecx
xor ecx, 2
and edx, 0xfffffffd
imul edx, ecx
add esi, edx
cmp esi, eax
jb 0x405b10
push esi
mov ebx, dword [esp + 0x10]
push dword [ebx + 0x1c]
push dword [ebx + 0x10]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x405c78
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], esi
mov edx, dword [ebp + 0x14]
xor eax, eax
test edx, edx
mov esi, dword [esp + 8]
je 0x405b7a
cmp dword [esp + 0x14], 0
jne 0x405b7a
push 0x4df40
push 1
push dword [edi + 0x34]
call dword [edi + 0x28]
add esp, 0xc
test eax, eax
je 0x405c78
mov dword [esp + 4], eax
mov ecx, edi
mov edx, esi
mov ebx, dword [esp + 0x4c]
push ebx
mov esi, dword [esp + 0x14]
push esi
call fcn.00406390
add esp, 8
test eax, eax
je 0x405c84
cmp dword [esp + 0x14], 0
sete dl
cmp dword [esp + 0x3c], 0
setne dh
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add eax, ebx
adc ecx, 0
mov edi, dword [esp + 8]
add edi, ebx
mov bl, dh
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
adc esi, 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x70], 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 word [esp + 0x8c], 0
or bl, dl
movzx edx, bl
shl edx, 3
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0xc]
cmp dword [edx + 0x34], 0
je 0x405c96
mov dword [esp + 8], edi
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov edx, 0xfffffffe
cmp edx, edi
mov edx, 0
mov dword [esp + 0x1c], esi
sbb edx, esi
jb 0x405d8a
xor edx, edx
mov esi, 0xfffffffe
cmp esi, eax
sbb edx, ecx
jb 0x405d8a
xor esi, esi
mov edi, dword [ebp + 8]
jmp 0x405de9
mov dword [edi + 0x1c], 0x10
jmp 0x405aaf
push dword [esp + 4]
push dword [edi + 0x34]
call dword [edi + 0x2c]
add esp, 8
jmp 0x405aaf
cmp dword [esp + 0x44], 0
jne 0x40618c
cmp dword [esp + 0x10], 0
jne 0x40618c
mov esi, edi
mov dword [esp + 0x70], 0x4034b50
test bl, bl
je 0x405cbc
mov bl, 0x14
mov byte [esp + 0x74], bl
mov ebx, dword [esp + 0x90]
movzx edx, bx
mov byte [esp + 0x76], bl
mov byte [esp + 0x77], dh
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x78], dl
mov dword [esp + 0x79], 0
mov dword [esp + 0x7d], 0
mov dword [esp + 0x81], 0
mov dword [esp + 0x85], 0
mov byte [esp + 0x89], 0
mov ebx, dword [esp + 0x50]
mov byte [esp + 0x8a], bl
mov byte [esp + 0x8b], bh
mov edx, dword [ebp + 0x38]
mov byte [esp + 0x8c], dl
mov byte [esp + 0x8d], dh
lea edx, [esp + 0x70]
push 0x1e
push edx
push ecx
push eax
mov edi, dword [ebp + 8]
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x405f0b
mov eax, edi
mov edi, esi
add edi, 0x1e
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 0x405f9f
add edi, ebx
mov eax, edi
adc esi, 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], 0
jmp 0x405efa
xor edx, edx
mov esi, 0xfffffffe
cmp esi, eax
mov eax, 0
sbb eax, ecx
jb 0x405da0
xor eax, eax
jmp 0x405da4
lea eax, [esp + 0x20]
mov ecx, 0xfffffffe
cmp ecx, edi
mov ecx, 0
sbb ecx, dword [esp + 0x1c]
jb 0x405dbd
mov esi, 0
jmp 0x405dc1
lea esi, [esp + 0x40]
mov edi, dword [ebp + 8]
jae 0x405dca
lea edx, [esp + 0x28]
lea ecx, [esp + 0xa8]
mov dword [esp + 0xc], ecx
push eax
push esi
call fcn.00406440
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x38]
add edx, esi
mov dword [esp + 0x70], 0x4034b50
test bl, bl
je 0x405dfc
mov bl, 0x14
mov byte [esp + 0x74], bl
mov byte [esp + 0x75], 0
movzx ebx, word [esp + 0x90]
mov byte [esp + 0x76], bl
mov byte [esp + 0x77], bh
mov ebx, dword [esp + 0x3c]
mov byte [esp + 0x78], bl
mov dword [esp + 0x79], 0
mov dword [esp + 0x7d], 0
mov dword [esp + 0x81], 0
mov dword [esp + 0x85], 0
mov byte [esp + 0x89], 0
mov ebx, dword [esp + 0x50]
mov byte [esp + 0x8a], bl
mov byte [esp + 0x8b], bh
mov byte [esp + 0x8c], dl
mov byte [esp + 0x8d], dh
lea edx, [esp + 0x70]
push 0x1e
push edx
push ecx
push eax
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x405f0b
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 8]
add eax, 0x1e
mov esi, dword [esp + 0x10]
adc esi, 0
push ebx
push dword [ebp + 0xc]
push esi
mov dword [esp + 0x14], eax
push eax
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x405efe
mov edx, dword [esp + 8]
add edx, ebx
adc esi, 0
cmp dword [esp + 0xc], 0
mov ecx, esi
je 0x405f17
lea eax, [esp + 0xa8]
mov ebx, dword [esp + 0x1c]
push ebx
push eax
push ecx
mov dword [esp + 0x14], edx
push edx
push dword [edi + 0x44]
mov esi, ecx
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x405f0b
mov edx, dword [esp + 8]
mov eax, edx
and eax, ebx
mov ecx, eax
shr ecx, 0x1f
add eax, eax
xor edx, ebx
add edx, eax
mov eax, edx
adc esi, ecx
mov ecx, esi
jmp 0x405f21
push dword [esp + 4]
push dword [edi + 0x34]
call dword [edi + 0x2c]
add esp, 8
mov dword [edi + 0x1c], 0x13
jmp 0x405aaf
mov eax, edx
mov dword [esp + 0xc], 0
mov ebx, dword [ebp + 0x38]
test ebx, ebx
je 0x405f54
push ebx
push dword [ebp + 0x34]
push ecx
mov edi, eax
push eax
mov ebx, dword [ebp + 8]
push dword [ebx + 0x44]
mov esi, ecx
call dword [ebx + 0x3c]
mov ecx, dword [ebp + 0x38]
add esp, 0x14
cmp eax, ecx
jne 0x405fbb
add edi, ecx
mov dword [esp + 8], edi
adc esi, 0
mov dword [esp + 0x10], esi
jmp 0x405f5c
mov dword [esp + 0x10], ecx
mov dword [esp + 8], eax
cmp dword [esp + 0x14], 0
je 0x405fc7
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 0x18]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x405f9f
mov eax, dword [ebp + 0x14]
add dword [esp + 8], eax
adc dword [esp + 0x10], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
jmp 0x40608c
push dword [esp + 4]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x405aaf
mov dword [ebx + 0x1c], 0x13
jmp 0x405aaf
cmp dword [ebp + 0x14], 0
je 0x40608c
mov eax, dword [ebp + 8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 8]
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 + 0x34]
mov ecx, eax
cmp eax, 0xa
jl 0x406008
mov ecx, 0xa
xor eax, eax
mov edx, dword [esp + 0x34]
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x435d38]
test edx, edx
jne 0x406027
or eax, 0x80000
lea ecx, [esp + 0x58]
push eax
push ecx
push 0x4064b0
mov esi, dword [esp + 0x10]
push esi
call fcn.00404930
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.00403470
add esp, 0x18
cmp eax, 1
jne 0x40619b
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 + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
push dword [esp + 4]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov esi, ecx
mov dword [esp + 0x14], eax
or ecx, eax
je 0x4062a1
mov dword [esp + 0x58], 0x8074b50
mov edx, dword [esp + 0x38]
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 + 0xc], 0
je 0x406188
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 + 0x4c], 0x38
mov dword [esp + 0x9c], 0x30
mov ecx, 0x28
mov dword [esp + 4], 0x18
mov dword [esp + 0x34], 0x17
mov eax, dword [esp + 0x14]
mov edx, eax
mov byte [esp + 0x1b], al
mov dword [esp + 0xa0], 0x16
mov dword [esp + 0x98], 0x15
mov edi, 0x14
jmp 0x406204
test edx, edx
je 0x4061b7
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x405aaf
push dword [esp + 4]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x405aaf
mov dword [esp + 0x60], ecx
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x9c], 0x10
mov ecx, 8
mov dword [esp + 0x34], 0xf
mov dword [esp + 0xa0], 0xe
mov edx, esi
mov byte [esp + 0x1b], dl
mov dword [esp + 0x98], 0xd
mov edi, 0xc
mov dword [esp + 4], 0x10
mov edx, esi
mov ebx, dword [esp + 0x14]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x1b]
mov byte [esp + edi + 0x58], al
test cl, 0x20
jne 0x40621f
mov ebx, edx
mov edx, esi
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x14]
shrd edx, eax, cl
mov edi, dword [esp + 0x98]
mov byte [esp + edi + 0x58], bl
mov ebx, eax
shr ebx, cl
test cl, 0x20
jne 0x406245
mov ebx, edx
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
shrd esi, eax, cl
mov edx, esi
mov esi, dword [esp + 0xa0]
mov byte [esp + esi + 0x58], bl
shr eax, cl
test cl, 0x20
jne 0x406266
mov eax, edx
mov ecx, dword [esp + 0x34]
mov byte [esp + ecx + 0x58], al
lea eax, [esp + 0x58]
mov esi, dword [esp + 4]
push esi
push eax
push dword [esp + 0x18]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x405aaf
mov eax, dword [esp + 4]
add dword [esp + 8], eax
adc dword [esp + 0x10], 0
cmp dword [esp + 0xc], 0
je 0x406300
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x20]
mov eax, 0
sbb eax, dword [esp + 0x24]
jb 0x4062c2
xor eax, eax
jmp 0x4062c6
lea eax, [esp + 0x20]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x28]
mov ecx, 0
sbb ecx, dword [esp + 0x2c]
jb 0x4062e1
mov edi, 0
jmp 0x4062e5
lea edi, [esp + 0x40]
jae 0x4062eb
lea edx, [esp + 0x28]
lea ecx, [esp + 0xa8]
push eax
push edi
call fcn.00406440
add esp, 8
mov dword [esp + 0x1c], eax
movzx ebx, word [esp + 0x90]
movzx esi, word [esp + 0x3c]
movzx eax, word [esp + 0x1c]
movzx edi, word [esp + 0x50]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x5c]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0
push 0
push ebx
push esi
push dword [esp + 0x5c]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push dword [esp + 0xcc]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x50]
push edi
call fcn.00406500
add esp, 0x4c
test eax, eax
je 0x405aaf
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x405ab1