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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov esi, dword [ebp + 0x24]
mov edi, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], esi
mov ebx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x30], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov ecx, dword [ebp + 0x20]
mov eax, 6
test ecx, ecx
js 0x405cef
mov eax, ecx
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp], esi
mov ecx, esi
or ecx, edi
je 0x405d09
mov ecx, eax
and ecx, 0x400
jmp 0x405d1b
mov esi, eax
and esi, 0x400
xor ecx, ecx
test ebx, ebx
je 0x405d21
test esi, esi
jne 0x405d21
mov esi, ecx
mov cx, 8
test eax, 0x10000
mov dword [esp + 0x10], edi
jne 0x405d35
movzx ecx, cx
or ecx, 0x800
mov dword [esp + 0x8c], ecx
mov edi, eax
and edi, 0xf
sete byte [esp + 0x20]
test esi, esi
setne byte [esp + 0x1c]
mov ecx, dword [edx + 0x48]
mov dword [esp + 4], ecx
test ecx, ecx
je 0x405db7
cmp dword [edx + 0x14], 2
jne 0x405db7
mov dword [esp + 8], esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x405d79
test esi, esi
mov esi, dword [esp + 8]
je 0x405db7
cmp dword [ebp + 0x10], 0
jne 0x405d81
jmp 0x405db7
test esi, esi
mov esi, dword [esp + 8]
je 0x405db7
cmp word [ebp + 0x1c], 0
je 0x405db2
cmp dword [ebp + 0x18], 0
je 0x405db7
cmp edi, 0xa
ja 0x405db7
mov ebx, dword [esp + 4]
mov ecx, dword [ebx + 0x34]
mov edx, dword [edx + 0x10]
test ecx, ecx
je 0x405dc8
cmp edx, 0xffffffff
jne 0x405de9
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x405dbe
cmp edi, 0xb
jb 0x405d93
mov dword [edx + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [esp + 0x10], 0
jne 0x405dd9
xor ecx, ecx
cmp edx, 0xffff
jne 0x405de9
mov edx, dword [esp + 4]
mov dword [edx + 0x34], 1
mov ecx, 1
mov edx, dword [esp]
or edx, dword [esp + 0x10]
je 0x405e02
test esi, esi
jne 0x405e02
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
jmp 0x405dbe
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0x2f
mov edx, dword [ebp + 8]
jne 0x405e16
mov dword [edx + 0x1c], 0x19
jmp 0x405dbe
mov dword [esp + 0x40], ecx
movzx ecx, byte [esp + 0x1c]
or byte [esp + 0x20], cl
mov ecx, eax
xor ecx, 0xfffffbff
or eax, 0x400
test eax, ecx
je 0x405e40
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 4]
jmp 0x405e89
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push 0
call fcn.00403a40
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0
mov eax, 0
cmp esi, 4
setb cl
mov esi, dword [esp + 4]
jb 0x405e7a
mov eax, edi
or byte [esp + 0x20], cl
mov ecx, dword [ebp + 0x14]
mov dword [esp], ecx
mov edi, eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00409500
add esp, 4
cmp eax, 0x10000
jb 0x405ea8
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x405dbe
mov dword [esp + 0x98], ebx
mov dword [esp + 0x1c], eax
movzx eax, word [ebp + 0x1c]
mov dword [esp + 0x90], eax
mov dword [esp + 0x24], 0
mov ebx, 0xfffffffe
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
or edx, ecx
mov edx, 0
je 0x405eeb
lea edx, [ebx + ecx]
inc edx
mov eax, dword [eax]
and eax, edx
sub ecx, eax
and ecx, edx
mov edx, ecx
mov dword [esp + 0x44], edx
mov edx, dword [esi + 4]
xor ecx, ecx
mov dword [esp + 0x88], edx
add edx, dword [esp + 0x90]
setb cl
mov eax, edx
add eax, dword [esp + 0x1c]
mov dword [esp + 0x84], ecx
adc ecx, 0
add eax, 0x4a
adc ecx, 0
cmp ebx, eax
sbb dword [esp + 0x24], ecx
jae 0x405f32
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x405dbe
mov ebx, dword [esp + 0x40]
test ebx, ebx
jne 0x405fa6
xor ebx, ebx
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x44]
setb bl
mov ecx, dword [ebp + 8]
add eax, dword [ecx]
adc ebx, dword [ecx + 4]
add eax, 0x4c
adc ebx, 0
mov dword [esp + 0x24], ebx
mov ebx, eax
and ebx, dword [esp + 0x1c]
mov ecx, ebx
shr ecx, 0x1f
mov dword [esp + 0x40], ecx
add ebx, ebx
xor eax, dword [esp + 0x1c]
add edx, dword [ebp + 0x38]
mov ecx, dword [esp + 0x84]
adc ecx, 0
add edx, dword [ebp + 0x40]
adc ecx, 0
add edx, eax
adc ecx, dword [esp + 0x24]
add edx, ebx
adc ecx, dword [esp + 0x40]
add edx, 0x26
adc ecx, 0xffffffff
xor ebx, ebx
cmp ecx, 0xffffffff
je 0x405fa6
mov dword [esi + 0x34], 1
mov ebx, 1
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x405ff3
mov eax, edx
xor eax, 0xfffffffe
mov ecx, edx
and ecx, 0xfffffffe
lea eax, [eax + ecx*2]
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + eax + 1], 0x2f
mov ecx, dword [ebp + 8]
jne 0x405ff6
cmp dword [ebp + 0x14], 0
jne 0x405fe7
mov dword [esp + 0x40], 0x10
mov eax, dword [esp]
or eax, dword [esp + 0x10]
je 0x405ff6
mov dword [ecx + 0x1c], 0x18
jmp 0x405dbe
mov ecx, dword [ebp + 8]
test ebx, ebx
je 0x405fff
mov ebx, 0x1c
mov eax, dword [esp + 0x90]
add eax, edx
mov edx, dword [esp + 0x88]
add edx, eax
lea eax, [ebx + edx]
add eax, 0x2e
mov edx, dword [esi + 8]
cmp edx, eax
mov dword [esp + 0x10], edi
jae 0x406072
mov esi, 1
test edx, edx
je 0x406047
mov esi, edx
jmp 0x406047
mov ecx, esi
and ecx, 0xfffffffd
mov edx, esi
and edx, 2
or esi, 2
imul esi, edx
xor edx, 2
imul edx, ecx
add esi, edx
cmp esi, eax
jb 0x40602f
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 0x4061e8
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov ecx, edi
mov esi, ebx
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
inc eax
cmp edx, eax
jae 0x4060cd
mov esi, 1
test edx, edx
je 0x4060a2
mov esi, edx
jmp 0x4060a2
mov ecx, esi
and ecx, 0xfffffffd
mov edx, esi
and edx, 2
or esi, 2
imul esi, edx
xor edx, 2
imul edx, ecx
add esi, edx
cmp esi, eax
jb 0x40608a
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 0x4061e8
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], esi
mov ecx, edi
cmp dword [ebp + 0x14], 0
sete dl
xor eax, eax
or dl, byte [esp + 0x20]
jne 0x4060fa
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
je 0x4062f1
mov dword [esp], eax
mov edi, dword [esp + 0x14]
mov edx, edi
mov ebx, dword [esp + 0x44]
push ebx
mov esi, dword [esp + 0x10]
push esi
call fcn.004068b0
add esp, 8
test eax, eax
je 0x4061f4
cmp dword [esp + 8], 0
setne dl
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
add eax, ebx
adc ecx, 0
mov dword [esp + 8], eax
mov dword [esp + 0x30], eax
add edi, ebx
mov dword [esp + 0x14], edi
adc esi, 0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov word [esp + 0x80], 0
movzx ebx, byte [esp + 0x20]
xor bl, 1
or bl, dl
movzx edx, bl
shl edx, 3
mov dword [esp + 0x24], edx
mov eax, dword [esp + 4]
cmp dword [eax + 0x34], 0
je 0x406208
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov eax, 0xfffffffe
cmp eax, edi
mov edx, 0
sbb edx, esi
jb 0x4062fd
xor edx, edx
cmp eax, dword [esp + 8]
sbb edx, ecx
jb 0x4062fd
mov dword [esp + 4], 0
xor eax, eax
mov esi, dword [esp + 8]
jmp 0x406352
mov dword [edi + 0x1c], 0x10
jmp 0x405dbe
push dword [esp]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x405dbe
cmp dword [esp + 0x2c], 0
jne 0x4066c2
test esi, esi
jne 0x4066c2
mov dword [esp + 0xc], esi
mov dword [esp + 0x64], 0x4034b50
test bl, bl
je 0x40622d
mov bl, 0x14
mov byte [esp + 0x68], bl
mov ebx, dword [esp + 0x8c]
movzx edx, bx
mov byte [esp + 0x6a], bl
mov byte [esp + 0x6b], dh
mov edx, dword [esp + 0x24]
mov byte [esp + 0x6c], dl
mov dword [esp + 0x6d], 0
mov dword [esp + 0x71], 0
mov dword [esp + 0x75], 0
mov dword [esp + 0x79], 0
mov byte [esp + 0x7d], 0
mov ebx, dword [esp + 0x1c]
mov byte [esp + 0x7e], bl
mov byte [esp + 0x7f], bh
mov edx, dword [ebp + 0x38]
mov byte [esp + 0x80], dl
mov byte [esp + 0x81], dh
lea edx, [esp + 0x64]
push 0x1e
push edx
push ecx
push dword [esp + 0x14]
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x4064c6
mov edi, dword [esp + 0x14]
add edi, 0x1e
mov eax, esi
mov esi, dword [esp + 0xc]
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 0x4064b7
add edi, ebx
adc esi, 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ebx, edi
jmp 0x40644e
mov dword [ecx + 0x1c], 0x10
jmp 0x405dbe
xor edx, edx
cmp eax, dword [esp + 8]
mov eax, 0
sbb eax, ecx
jb 0x406310
xor eax, eax
jmp 0x406314
lea eax, [esp + 0x30]
mov ecx, 0xfffffffe
cmp ecx, edi
mov ecx, 0
sbb ecx, esi
jb 0x40632b
mov esi, 0
jmp 0x40632f
lea esi, [esp + 0x28]
jae 0x406335
lea edx, [esp + 0x38]
lea ecx, [esp + 0xa0]
mov dword [esp + 4], ecx
push eax
push esi
call fcn.00406950
add esp, 8
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0x38]
mov dword [esp + 8], eax
add edx, eax
mov dword [esp + 0x64], 0x4034b50
test bl, bl
je 0x406369
mov bl, 0x14
mov byte [esp + 0x68], bl
mov byte [esp + 0x69], 0
movzx ebx, word [esp + 0x8c]
mov byte [esp + 0x6a], bl
mov byte [esp + 0x6b], bh
mov ebx, dword [esp + 0x24]
mov byte [esp + 0x6c], bl
mov dword [esp + 0x6d], 0
mov dword [esp + 0x71], 0
mov dword [esp + 0x75], 0
mov dword [esp + 0x79], 0
mov byte [esp + 0x7d], 0
mov ebx, dword [esp + 0x1c]
mov byte [esp + 0x7e], bl
mov byte [esp + 0x7f], bh
mov byte [esp + 0x80], dl
mov byte [esp + 0x81], dh
lea edx, [esp + 0x64]
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 0x4064c6
mov edi, dword [esp + 0x14]
add edi, 0x1e
mov eax, esi
mov esi, dword [esp + 0xc]
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 0x4064b7
add edi, ebx
adc esi, 0
cmp dword [esp + 4], 0
mov ebx, edi
je 0x406446
lea eax, [esp + 0xa0]
mov edi, dword [esp + 8]
push edi
push eax
push esi
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x4064d2
add ebx, edi
adc esi, 0
jmp 0x40644e
mov dword [esp + 4], 0
mov edi, dword [ebp + 0x38]
test edi, edi
je 0x406470
push edi
push dword [ebp + 0x34]
push esi
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x4064d2
add ebx, edi
adc esi, 0
mov edi, dword [ebp + 0x14]
movzx eax, byte [esp + 0x20]
test al, al
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], esi
je 0x4064e1
push edi
push dword [ebp + 0x10]
push esi
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x4064b7
mov eax, dword [ebp + 0x14]
add dword [esp + 0x14], eax
adc dword [esp + 0xc], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
jmp 0x4065a4
push dword [esp]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x405dbe
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x405dbe
test edi, edi
je 0x4065a4
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x10]
mov ecx, eax
cmp eax, 0xa
jl 0x406520
mov ecx, 0xa
xor eax, eax
mov edx, dword [esp + 0x10]
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x43fa58]
test edx, edx
jne 0x40653f
or eax, 0x80000
lea ecx, [esp + 0x48]
push eax
push ecx
push 0x4069c0
mov esi, dword [esp + 0xc]
push esi
call fcn.00404f80
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x9c]
push 4
push 0
push 0
push eax
push dword [ebp + 0x10]
push esi
call fcn.00403b40
add esp, 0x18
cmp eax, 1
jne 0x4066a0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], eax
push dword [esp]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov esi, eax
mov dword [esp + 0x10], ecx
or eax, ecx
je 0x4067c0
mov dword [esp + 0x48], 0x8074b50
mov ecx, dword [esp + 0x98]
mov byte [esp + 0x4c], cl
mov byte [esp + 0x4d], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x4e], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x4f], al
cmp dword [esp + 4], 0
je 0x4066bb
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x50], dl
mov byte [esp + 0x51], dh
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x52], al
mov eax, ecx
shr edx, 0x18
mov byte [esp + 0x53], dl
mov byte [esp + 0x54], cl
mov byte [esp + 0x55], ch
shr ecx, 0x10
shr eax, 0x18
mov byte [esp + 0x56], cl
mov byte [esp + 0x57], al
mov ecx, esi
mov byte [esp + 0x58], cl
mov byte [esp + 0x59], ch
mov eax, esi
shr eax, 0x10
mov byte [esp + 0x5a], al
mov eax, esi
shr eax, 0x18
mov byte [esp + 0x5b], al
mov dword [esp + 0x88], 0x38
mov dword [esp + 0x84], 0x30
mov ecx, 0x28
mov dword [esp], 0x18
mov dword [esp + 0x20], 0x17
mov eax, dword [esp + 0x10]
mov byte [esp + 0x1b], al
mov dword [esp + 0x44], 0x16
mov dword [esp + 0x94], 0x15
mov edi, 0x14
jmp 0x406721
push dword [esp]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x405dbe
cmp dword [esp + 0x2c], 0
je 0x4066d1
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x405dbe
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov dword [esp + 0x88], 0x18
mov dword [esp + 0x84], 0x10
mov ecx, 8
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x44], 0xe
mov eax, esi
mov byte [esp + 0x1b], al
mov dword [esp + 0x94], 0xd
mov edi, 0xc
mov dword [esp], 0x10
mov edx, esi
mov eax, dword [esp + 0x10]
shrd edx, eax, cl
shr eax, cl
movzx ebx, byte [esp + 0x1b]
mov byte [esp + edi + 0x48], bl
test cl, 0x20
jne 0x40673c
mov eax, edx
mov edx, esi
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x10]
shrd edx, ebx, cl
mov edi, dword [esp + 0x94]
mov byte [esp + edi + 0x48], al
mov eax, ebx
shr eax, cl
test cl, 0x20
jne 0x406762
mov eax, edx
mov ecx, dword [esp + 0x88]
mov edi, dword [esp + 0x10]
shrd esi, edi, cl
mov edx, esi
mov esi, dword [esp + 0x44]
mov byte [esp + esi + 0x48], al
shr edi, cl
mov esi, edi
test cl, 0x20
jne 0x406785
mov esi, edx
mov eax, dword [esp + 0x20]
mov ecx, esi
mov byte [esp + eax + 0x48], cl
lea eax, [esp + 0x48]
mov esi, dword [esp]
push esi
push eax
push dword [esp + 0x14]
push dword [esp + 0x20]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x405dbe
mov eax, dword [esp]
add dword [esp + 0x14], eax
adc dword [esp + 0xc], 0
cmp dword [esp + 4], 0
je 0x40681f
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x30]
mov eax, 0
sbb eax, dword [esp + 0x34]
jb 0x4067e1
xor eax, eax
jmp 0x4067e5
lea eax, [esp + 0x30]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x38]
mov ecx, 0
sbb ecx, dword [esp + 0x3c]
jb 0x406800
mov edi, 0
jmp 0x406804
lea edi, [esp + 0x28]
jae 0x40680a
lea edx, [esp + 0x38]
lea ecx, [esp + 0xa0]
push eax
push edi
call fcn.00406950
add esp, 8
mov dword [esp + 8], eax
movzx ebx, word [esp + 0x8c]
movzx esi, word [esp + 0x24]
movzx eax, word [esp + 8]
movzx edi, word [esp + 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x48]
push dword [esp + 0x40]
push dword [esp + 0x40]
push ebx
push esi
push dword [esp + 0xb4]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0xc0]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x40]
push edi
call fcn.00406a10
add esp, 0x44
test eax, eax
je 0x405dbe
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x405dc0