Function at 0x405a90
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 ecx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ecx
mov edi, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 8], edi
mov dword [esp + 0x30], edi
mov dword [esp + 4], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov eax, dword [ebp + 0x20]
mov ebx, 6
test eax, eax
js 0x405ae3
mov ebx, eax
mov eax, ecx
mov dword [esp + 0x44], esi
or eax, esi
je 0x405af6
mov eax, ebx
and eax, 0x400
jmp 0x405b0a
mov esi, ebx
and esi, 0x400
xor eax, eax
cmp dword [ebp + 0x14], 0
je 0x405b10
test esi, esi
jne 0x405b10
mov esi, eax
mov ax, 8
mov edi, ebx
test ebx, 0x10000
jne 0x405b22
movzx eax, ax
or eax, 0x800
mov dword [esp + 0x90], eax
mov eax, edi
xor eax, 0xfffffff0
or edi, 0xf
and edi, eax
mov dword [esp + 0x1c], edi
sete ah
test esi, esi
setne al
mov edi, dword [edx + 0x48]
mov dword [esp + 0x14], edi
test edi, edi
je 0x405be5
cmp dword [edx + 0x14], 2
jne 0x405be5
mov edi, ecx
mov dword [esp + 0x2c], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x14], 0
je 0x405b77
test esi, esi
mov esi, dword [esp + 0x2c]
je 0x405be5
cmp dword [ebp + 0x10], 0
jne 0x405b7f
jmp 0x405be5
test esi, esi
mov esi, dword [esp + 0x2c]
je 0x405be5
cmp word [ebp + 0x1c], 0
je 0x405b95
cmp dword [ebp + 0x18], 0
je 0x405be5
cmp dword [esp + 0x1c], 0xa
jbe 0x405b9c
jmp 0x405be5
cmp dword [esp + 0x1c], 0xb
jae 0x405be5
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx + 0x34]
mov ecx, dword [edx + 0x10]
test ebx, ebx
je 0x405bb8
cmp ecx, 0xffffffff
jne 0x405bd9
mov dword [edx + 0x1c], 2
jmp 0x405bec
cmp dword [esp + 0x44], 0
jne 0x405bc9
xor ebx, ebx
cmp ecx, 0xffff
jne 0x405bd9
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x34], 1
mov ebx, 1
mov ecx, edi
or ecx, dword [esp + 0x44]
je 0x405bf6
test esi, esi
jne 0x405bf6
mov dword [edx + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0x2f
jne 0x405c07
mov dword [edx + 0x1c], 0x19
jmp 0x405bec
or al, ah
mov byte [esp + 0x28], al
test esi, esi
je 0x405c1d
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x94], eax
jmp 0x405c65
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push 0
call fcn.00403760
add esp, 0xc
mov dword [esp + 0x94], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 0
mov eax, 0
cmp edi, 4
setb cl
jb 0x405c5a
mov eax, dword [esp + 0x1c]
or byte [esp + 0x28], cl
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00409020
add esp, 4
cmp eax, 0x10000
jb 0x405c84
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x405bec
mov esi, eax
mov dword [esp + 0xc], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx + 0x24]
or edx, eax
mov edx, 0
mov dword [esp + 0x24], esi
je 0x405cc8
mov edx, eax
mov esi, 0xfffffffe
or edx, esi
mov ecx, eax
and ecx, 0xfffffffe
add ecx, edx
inc ecx
mov edx, dword [ebp + 8]
and ecx, dword [edx]
lea edx, [esi + eax]
inc edx
sub eax, ecx
mov esi, dword [esp + 0x24]
and eax, edx
mov edx, eax
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 4]
movzx eax, word [ebp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xa0], eax
add edx, eax
setb cl
mov eax, edx
add eax, esi
mov dword [esp + 0x8c], ecx
adc ecx, 0
add eax, 0x4a
adc ecx, 0
mov esi, 0xfffffffe
cmp esi, eax
sbb dword [esp + 0xc], ecx
jae 0x405d19
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x405bec
test ebx, ebx
jne 0x405d6b
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x1f
add edx, dword [ebp + 0x38]
mov esi, dword [esp + 0x8c]
adc esi, 0
add ecx, ecx
add edx, dword [ebp + 0x40]
adc esi, 0
add edx, ecx
adc esi, eax
add edx, dword [esp + 0x20]
adc esi, 0
mov eax, dword [ebp + 8]
add edx, dword [eax]
adc esi, dword [eax + 4]
add edx, 0x72
adc esi, 0xffffffff
xor ebx, ebx
cmp esi, 0xffffffff
je 0x405d6b
mov eax, dword [esp + 0x14]
mov dword [eax + 0x34], 1
mov ebx, 1
xor edx, edx
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x405d9b
mov eax, dword [ebp + 0xc]
cmp byte [ecx + eax - 1], 0x2f
mov eax, dword [ebp + 8]
jne 0x405d9b
cmp dword [ebp + 0x14], 0
jne 0x405f7c
mov edx, 0x10
or edi, dword [esp + 0x44]
jne 0x405f7c
mov dword [esp + 0x44], edx
test ebx, ebx
je 0x405da8
mov ebx, 0x1c
mov eax, dword [esp + 0xa0]
add eax, ecx
mov ecx, dword [esp + 0x10]
add ecx, eax
lea eax, [ebx + ecx]
add eax, 0x2e
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 8]
cmp edx, eax
mov ecx, dword [ebp + 0x14]
jae 0x405e04
mov ecx, 1
test edx, edx
je 0x405dd6
mov ecx, edx
mov esi, ecx
add ecx, ecx
cmp esi, eax
jb 0x405dd6
push esi
push dword [edi + 0xc]
push dword [edi]
mov ebx, edi
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x405f5b
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov ecx, dword [ebp + 0x14]
mov edi, ebx
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
inc eax
cmp edx, eax
jae 0x405e48
mov ecx, 1
test edx, edx
je 0x405e1a
mov ecx, edx
mov esi, ecx
add ecx, ecx
cmp esi, eax
jb 0x405e1a
push esi
push dword [edi + 0x1c]
push dword [edi + 0x10]
mov ebx, edi
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x405f5b
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], esi
mov ecx, dword [ebp + 0x14]
test ecx, ecx
sete cl
xor eax, eax
or cl, byte [esp + 0x28]
jne 0x405e70
push 0x4df40
push 1
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x28]
add esp, 0xc
test eax, eax
je 0x405fb5
mov dword [esp + 0xc], eax
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 8]
mov edx, edi
mov esi, dword [esp + 0x20]
push esi
mov ebx, dword [esp + 8]
push ebx
call fcn.004066a0
add esp, 8
test eax, eax
je 0x405f67
cmp dword [esp + 0x2c], 0
sete dl
mov eax, dword [esp + 0x34]
mov ecx, ebx
mov ebx, dword [esp + 0x30]
add ebx, esi
adc eax, 0
mov dword [esp + 0x30], ebx
add edi, esi
mov dword [esp + 8], edi
adc ecx, 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
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 dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov word [esp + 0x88], 0
and dl, byte [esp + 0x28]
mov byte [esp + 0x10], dl
xor dl, 1
movzx edx, dl
shl edx, 3
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x34], 0
je 0x405f88
mov dword [esp + 4], ecx
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov eax, 0xfffffffe
cmp eax, edi
mov edx, 0
sbb edx, esi
mov ecx, dword [esp + 0x20]
jb 0x405fc4
xor edx, edx
cmp eax, ebx
sbb edx, ecx
jb 0x405fc4
xor edi, edi
xor eax, eax
jmp 0x406015
mov dword [edi + 0x1c], 0x10
jmp 0x405bec
push dword [esp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x405bec
mov dword [eax + 0x1c], 0x18
jmp 0x405bec
cmp dword [esp + 0x4c], 0
jne 0x4064bc
test ecx, ecx
jne 0x4064bc
mov dword [esp + 0x6c], 0x4034b50
cmp byte [esp + 0x10], 0
jne 0x406138
mov dl, 0x14
jmp 0x40613a
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x10
jmp 0x405bec
xor edx, edx
cmp eax, ebx
mov eax, 0
sbb eax, ecx
jb 0x405fd5
xor eax, eax
jmp 0x405fd9
lea eax, [esp + 0x30]
mov ecx, 0xfffffffe
cmp ecx, edi
mov ecx, 0
sbb ecx, esi
jb 0x405ff0
mov esi, 0
jmp 0x405ff4
lea esi, [esp + 0x48]
jae 0x405ffa
lea edx, [esp + 0x38]
lea edi, [esp + 0xa8]
mov ecx, edi
push eax
push esi
call fcn.00406740
add esp, 8
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0x38]
lea esi, [eax + edx]
mov dword [esp + 0x6c], 0x4034b50
cmp byte [esp + 0x10], 0
mov dword [esp + 0x14], eax
jne 0x406032
mov dl, 0x14
jmp 0x406034
xor edx, edx
mov byte [esp + 0x70], dl
mov byte [esp + 0x71], 0
movzx edx, word [esp + 0x90]
mov byte [esp + 0x72], dl
mov byte [esp + 0x73], dh
mov edx, dword [esp + 0x2c]
mov byte [esp + 0x74], dl
mov dword [esp + 0x75], 0
mov dword [esp + 0x79], 0
mov dword [esp + 0x7d], 0
mov dword [esp + 0x81], 0
mov byte [esp + 0x85], 0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x86], al
mov byte [esp + 0x87], ah
mov eax, esi
mov byte [esp + 0x88], al
mov byte [esp + 0x89], ah
lea edx, [esp + 0x6c]
push 0x1e
push edx
push ecx
push ebx
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x4062c7
mov dword [esp + 0x10], edi
mov edi, dword [esp + 8]
add edi, 0x1e
mov eax, esi
mov esi, dword [esp + 4]
adc esi, 0
mov ebx, dword [esp + 0x24]
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 0x4062b7
mov eax, ebx
add edi, ebx
adc esi, 0
cmp dword [esp + 0x10], 0
mov ecx, edi
je 0x406214
lea eax, [esp + 0xa8]
mov edi, dword [esp + 0x14]
push edi
push eax
push esi
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
mov ebx, ecx
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x406261
add ebx, edi
adc esi, 0
mov dword [esp + 4], esi
mov ecx, ebx
jmp 0x406220
xor edx, edx
mov eax, dword [esp + 0x20]
mov dword [esp + 4], ecx
mov byte [esp + 0x70], dl
mov edx, dword [esp + 0x90]
movzx ecx, dx
mov byte [esp + 0x72], dl
mov byte [esp + 0x73], ch
mov edx, dword [esp + 0x2c]
mov byte [esp + 0x74], dl
mov dword [esp + 0x75], 0
mov dword [esp + 0x79], 0
mov dword [esp + 0x7d], 0
mov dword [esp + 0x81], 0
mov byte [esp + 0x85], 0
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x86], cl
mov byte [esp + 0x87], ch
mov edx, dword [ebp + 0x38]
mov byte [esp + 0x88], dl
mov byte [esp + 0x89], dh
lea edx, [esp + 0x6c]
push 0x1e
push edx
push eax
push ebx
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x4062c7
mov edi, dword [esp + 8]
add edi, 0x1e
mov eax, esi
mov esi, dword [esp + 4]
adc esi, 0
mov ebx, dword [esp + 0x24]
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 0x4062b7
add edi, ebx
adc esi, 0
mov dword [esp + 4], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov ecx, edi
jmp 0x406220
mov dword [esp + 4], esi
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x406270
push eax
push dword [ebp + 0x34]
mov edi, dword [esp + 0xc]
push edi
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
mov esi, ecx
call dword [eax + 0x3c]
mov edx, dword [ebp + 0x38]
add esp, 0x14
cmp eax, edx
jne 0x406261
mov eax, esi
and eax, edx
mov ecx, eax
shr ecx, 0x1f
add eax, eax
xor esi, edx
add esi, eax
mov dword [esp + 8], esi
adc edi, ecx
mov dword [esp + 4], edi
jmp 0x406274
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x405bec
mov dword [esp + 8], ecx
cmp byte [esp + 0x28], 0
mov esi, dword [ebp + 0x14]
je 0x4062d3
push esi
push dword [ebp + 0x10]
push dword [esp + 0xc]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x4062b7
mov eax, dword [ebp + 0x14]
add dword [esp + 8], eax
adc dword [esp + 4], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
jmp 0x40639d
push dword [esp + 0xc]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x405bec
test esi, esi
je 0x40639d
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov edx, eax
cmp eax, 0xa
jl 0x4062ed
mov ecx, 0xa
test edx, edx
jns 0x4062f6
mov ecx, 6
xor eax, eax
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x43da58]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
test edx, edx
jne 0x406338
or eax, 0x80000
lea ecx, [esp + 0x50]
push eax
push ecx
push 0x4067b0
mov esi, dword [esp + 0x18]
push esi
call fcn.00404d60
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.004038a0
add esp, 0x18
cmp eax, 1
jne 0x40649c
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
push dword [esp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov esi, ecx
mov dword [esp + 0x1c], eax
or ecx, eax
je 0x4065b5
mov dword [esp + 0x50], 0x8074b50
mov edx, dword [esp + 0x94]
mov byte [esp + 0x54], dl
mov byte [esp + 0x55], dh
mov ecx, edx
shr ecx, 0x10
mov byte [esp + 0x56], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x57], cl
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x10], 0
je 0x4064b8
mov byte [esp + 0x58], cl
mov byte [esp + 0x59], ch
mov ebx, ecx
shr ebx, 0x10
mov byte [esp + 0x5a], bl
mov ebx, edx
shr ebx, 0x10
shr ecx, 0x18
mov byte [esp + 0x5b], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x5c], dl
mov byte [esp + 0x5d], dh
mov byte [esp + 0x5e], bl
mov byte [esp + 0x5f], cl
mov edx, esi
mov byte [esp + 0x60], dl
mov byte [esp + 0x61], dh
mov ecx, esi
shr ecx, 0x10
mov byte [esp + 0x62], cl
mov ecx, esi
shr ecx, 0x18
mov byte [esp + 0x63], cl
mov dword [esp + 0x20], 0x38
mov dword [esp + 0x9c], 0x30
mov ecx, 0x28
mov dword [esp + 0x28], 0x18
mov dword [esp + 0xc], 0x17
mov eax, dword [esp + 0x1c]
mov edx, eax
mov byte [esp + 0x1b], al
mov dword [esp + 0x8c], 0x16
mov dword [esp + 0x98], 0x15
mov edi, 0x14
jmp 0x406518
push dword [esp + 0xc]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x405bec
test edx, edx
je 0x4064cb
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x405bec
mov dword [esp + 0x58], ecx
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x9c], 0x10
mov ecx, 8
mov dword [esp + 0xc], 0xf
mov dword [esp + 0x8c], 0xe
mov edx, esi
mov byte [esp + 0x1b], dl
mov dword [esp + 0x98], 0xd
mov edi, 0xc
mov dword [esp + 0x28], 0x10
mov edx, esi
mov ebx, dword [esp + 0x1c]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x1b]
mov byte [esp + edi + 0x50], al
test cl, 0x20
jne 0x406533
mov ebx, edx
mov edx, esi
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x1c]
shrd edx, eax, cl
mov edi, dword [esp + 0x98]
mov byte [esp + edi + 0x50], bl
mov ebx, eax
shr ebx, cl
test cl, 0x20
jne 0x406559
mov ebx, edx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
shrd esi, eax, cl
mov edx, esi
mov esi, dword [esp + 0x8c]
mov byte [esp + esi + 0x50], bl
shr eax, cl
test cl, 0x20
jne 0x40657a
mov eax, edx
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x50], al
lea eax, [esp + 0x50]
mov esi, dword [esp + 0x28]
push esi
push eax
push dword [esp + 0xc]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x405bec
mov eax, dword [esp + 0x28]
add dword [esp + 8], eax
adc dword [esp + 4], 0
cmp dword [esp + 0x10], 0
je 0x406614
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x30]
mov eax, 0
sbb eax, dword [esp + 0x34]
jb 0x4065d6
xor eax, eax
jmp 0x4065da
lea eax, [esp + 0x30]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x38]
mov ecx, 0
sbb ecx, dword [esp + 0x3c]
jb 0x4065f5
mov edi, 0
jmp 0x4065f9
lea edi, [esp + 0x48]
jae 0x4065ff
lea edx, [esp + 0x38]
lea ecx, [esp + 0xa8]
push eax
push edi
call fcn.00406740
add esp, 8
mov dword [esp + 0x14], eax
movzx ebx, word [esp + 0x90]
movzx esi, word [esp + 0x2c]
movzx eax, word [esp + 0x14]
movzx edi, word [esp + 0x24]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x4c]
push dword [esp + 0x40]
push dword [esp + 0x40]
push ebx
push esi
push dword [esp + 0xb0]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0xd0]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x4c]
push edi
call fcn.00406800
add esp, 0x44
test eax, eax
je 0x405bec
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 4]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x405bee