Function at 0x4058f0
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 esi, dword [ebp + 0x24]
mov edi, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
mov ebx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x28], ebx
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 0x40593f
mov eax, ecx
mov dword [esp + 0xc], ebx
mov ecx, esi
or ecx, edi
je 0x405953
mov ecx, eax
and ecx, 0x400
jmp 0x405967
mov ebx, eax
and ebx, 0x400
xor ecx, ecx
cmp dword [ebp + 0x14], 0
je 0x40596d
test ebx, ebx
jne 0x40596d
mov ebx, ecx
mov cx, 8
test eax, 0x10000
jne 0x40597d
movzx ecx, cx
or ecx, 0x800
mov dword [esp + 0x8c], ecx
mov ecx, eax
and ecx, 0xf
mov dword [esp + 0x18], ecx
sete byte [esp + 0x20]
test ebx, ebx
setne cl
mov edx, dword [edx + 0x48]
mov dword [esp + 8], edx
test edx, edx
je 0x405a44
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 2
jne 0x405a44
cmp dword [ebp + 0x14], 0
setne dl
cmp dword [ebp + 0x10], 0
sete ch
cmp dword [ebp + 0xc], 0
je 0x405a44
and ch, dl
jne 0x405a44
cmp word [ebp + 0x1c], 0
setne dl
cmp dword [ebp + 0x18], 0
sete ch
test ch, dl
jne 0x405a44
cmp dword [esp + 0x18], 0xb
jae 0x405a44
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 8]
mov ebx, dword [edx + 0x34]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov dword [esp + 4], ebx
test ebx, ebx
je 0x405a0f
cmp edx, 0xffffffff
jne 0x405a36
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x405a4e
test edi, edi
jne 0x405a23
mov dword [esp + 4], 0
cmp edx, 0xffff
jne 0x405a36
mov edx, dword [esp + 8]
mov dword [edx + 0x34], 1
mov dword [esp + 4], 1
mov edx, esi
or edx, edi
mov ebx, dword [esp + 0x24]
je 0x405a58
test ebx, ebx
jne 0x405a58
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0x2f
mov edx, dword [ebp + 8]
jne 0x405a6c
mov dword [edx + 0x1c], 0x19
jmp 0x405a4e
or byte [esp + 0x20], cl
mov ecx, eax
xor ecx, 0xfffffbff
or eax, 0x400
test eax, ecx
je 0x405a8d
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x94], eax
jmp 0x405acc
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push 0
call fcn.00403700
add esp, 0xc
mov dword [esp + 0x94], eax
xor edi, edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
mov eax, 0
cmp esi, 4
setb cl
jb 0x405ac4
mov eax, dword [esp + 0x18]
or byte [esp + 0x20], cl
mov dword [esp + 0x18], eax
push dword [ebp + 0xc]
call fcn.00408e40
add esp, 4
cmp eax, 0x10000
jb 0x405aed
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x405a4e
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
or edx, ecx
mov eax, 0
je 0x405b30
mov edx, ecx
mov eax, 0xfffffffe
or edx, eax
mov ebx, 0xfffffffe
mov eax, ecx
and eax, 0xfffffffe
add eax, edx
inc eax
mov edx, dword [ebp + 8]
and eax, dword [edx]
lea edx, [ebx + ecx]
inc edx
sub ecx, eax
and ecx, edx
mov eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
xor edx, edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], ecx
add eax, ecx
setb dl
add eax, 0x4a
adc edx, 0
movzx ebx, word [ebp + 0x1c]
mov ecx, eax
and ecx, ebx
add ecx, ecx
mov dword [esp + 0x90], ebx
xor eax, ebx
add eax, ecx
adc edx, 0
mov ecx, 0xfffffffe
cmp ecx, eax
sbb dword [esp + 0x4c], edx
jae 0x405b84
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x405a4e
cmp dword [esp + 4], 0
jne 0x405bee
mov eax, dword [esp + 0x3c]
mov ebx, eax
shr ebx, 0x1f
mov dword [esp + 4], 0
mov edx, dword [esp + 0x90]
add edx, dword [ebp + 0x38]
mov ecx, 0
adc ecx, 0xffffffff
add edx, dword [ebp + 0x40]
adc ecx, 0
add eax, eax
add edx, eax
adc ecx, ebx
add edx, dword [esp + 0x48]
adc ecx, 0
add edx, dword [esp + 0x1c]
adc ecx, 0
mov eax, dword [ebp + 8]
add edx, dword [eax]
adc ecx, dword [eax + 4]
add edx, 0x72
adc ecx, 0
cmp ecx, 0xffffffff
je 0x405bee
mov eax, dword [esp + 8]
mov dword [eax + 0x34], 1
mov dword [esp + 4], 1
mov edx, dword [esp + 0x3c]
test edx, edx
mov ebx, dword [esp + 0x24]
je 0x405c2d
mov dword [esp + 0x4c], 0
mov eax, dword [ebp + 0xc]
cmp byte [edx + eax - 1], 0x2f
mov ecx, dword [ebp + 8]
jne 0x405c38
cmp dword [ebp + 0x14], 0
jne 0x405c21
mov dword [esp + 0x4c], 0x10
or esi, edi
je 0x405c38
mov dword [ecx + 0x1c], 0x18
jmp 0x405a4e
mov dword [esp + 0x4c], 0
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 4]
test esi, esi
je 0x405c45
mov esi, 0x1c
mov eax, dword [esp + 0x90]
add eax, edx
mov edx, dword [esp + 0x1c]
add edx, eax
lea eax, [esi + edx]
add eax, 0x2e
mov edi, dword [esp + 8]
mov edx, dword [edi + 8]
cmp edx, eax
jae 0x405cb7
mov esi, 1
test edx, edx
je 0x405c8a
mov esi, edx
jmp 0x405c8a
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 0x405c72
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 0x405e2c
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov ecx, edi
mov edi, ebx
mov ebx, dword [esp + 0x24]
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
inc eax
cmp edx, eax
jae 0x405d14
mov esi, 1
test edx, edx
je 0x405ce7
mov esi, edx
jmp 0x405ce7
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 0x405ccf
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 0x405e2c
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], esi
mov ecx, edi
mov ebx, dword [esp + 0x24]
cmp dword [ebp + 0x14], 0
sete dl
xor eax, eax
or dl, byte [esp + 0x20]
jne 0x405d41
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 0x405e77
mov dword [esp + 4], eax
mov esi, dword [esp + 0xc]
mov edx, esi
mov edi, dword [esp + 0x48]
push edi
push dword [esp + 0x14]
call fcn.00406530
add esp, 8
test eax, eax
je 0x405e38
test ebx, ebx
sete bl
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add eax, edi
adc ecx, 0
mov dword [esp + 0x28], eax
add esi, edi
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x10]
adc edi, 0
mov dword [esp + 0x2c], ecx
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 bl, byte [esp + 0x20]
mov edx, ebx
xor dl, 1
movzx edx, dl
shl edx, 3
mov dword [esp + 0x24], edx
mov edx, dword [esp + 8]
cmp dword [edx + 0x34], 0
je 0x405e4d
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp + 8], 0
mov edx, 0xfffffffe
cmp edx, edi
mov edx, 0
mov dword [esp + 0x1c], esi
sbb edx, esi
jb 0x405e83
xor edx, edx
mov esi, 0xfffffffe
cmp esi, eax
sbb edx, ecx
jb 0x405e83
xor edi, edi
jmp 0x405edf
mov dword [edi + 0x1c], 0x10
jmp 0x405a4e
push dword [esp + 4]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x405a4e
cmp dword [esp + 0x44], 0
jne 0x406348
test edi, edi
jne 0x406348
mov dword [esp + 0x6c], 0x4034b50
test bl, bl
jne 0x405ff4
mov dl, 0x14
jmp 0x405ff6
mov dword [ecx + 0x1c], 0x10
jmp 0x405a4e
xor edx, edx
mov esi, 0xfffffffe
cmp esi, eax
mov eax, 0
sbb eax, ecx
jb 0x405e99
xor eax, eax
jmp 0x405e9d
lea eax, [esp + 0x28]
mov ecx, 0xfffffffe
cmp ecx, edi
mov ecx, 0
sbb ecx, dword [esp + 0x1c]
jb 0x405eb6
mov esi, 0
jmp 0x405eba
lea esi, [esp + 0x40]
jae 0x405ec0
lea edx, [esp + 0x30]
lea ecx, [esp + 0xa8]
mov dword [esp + 8], ecx
push eax
push esi
call fcn.004065d0
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x38]
add edx, edi
mov dword [esp + 0x6c], 0x4034b50
test bl, bl
jne 0x405ef4
mov bl, 0x14
jmp 0x405ef6
xor ebx, ebx
mov byte [esp + 0x70], bl
mov byte [esp + 0x71], 0
movzx ebx, word [esp + 0x8c]
mov byte [esp + 0x72], bl
mov byte [esp + 0x73], bh
mov ebx, dword [esp + 0x24]
mov byte [esp + 0x74], bl
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 ebx, dword [esp + 0x3c]
mov byte [esp + 0x86], bl
mov byte [esp + 0x87], bh
mov byte [esp + 0x88], dl
mov byte [esp + 0x89], dh
lea edx, [esp + 0x6c]
push 0x1e
push edx
push ecx
push eax
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x406158
mov dword [esp + 0x1c], edi
mov ecx, esi
mov esi, ebx
mov ebx, dword [esp + 0xc]
lea eax, [ebx + ebx]
and eax, 0x3c
xor ebx, 0x1e
add ebx, eax
mov edi, dword [esp + 0x10]
adc edi, 0
push esi
push dword [ebp + 0xc]
push edi
push ebx
push dword [ecx + 0x44]
call dword [ecx + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x406148
add ebx, esi
adc edi, 0
cmp dword [esp + 8], 0
mov esi, edi
je 0x4060be
lea eax, [esp + 0xa8]
mov edi, dword [esp + 0x1c]
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 0x4060ee
add ebx, edi
adc esi, 0
jmp 0x4060c6
xor edx, edx
mov byte [esp + 0x70], dl
mov ebx, dword [esp + 0x8c]
movzx edx, bx
mov byte [esp + 0x72], bl
mov byte [esp + 0x73], dh
mov edx, dword [esp + 0x24]
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 ebx, dword [esp + 0x3c]
mov byte [esp + 0x86], bl
mov byte [esp + 0x87], bh
mov edx, dword [ebp + 0x38]
mov byte [esp + 0x88], dl
mov byte [esp + 0x89], dh
lea edx, [esp + 0x6c]
push 0x1e
push edx
push ecx
push eax
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x406158
mov eax, esi
mov esi, dword [esp + 0xc]
add esi, 0x1e
adc edi, 0
push ebx
push dword [ebp + 0xc]
push edi
push esi
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x406148
add esi, ebx
adc edi, 0
mov dword [esp + 8], 0
mov dword [esp + 0x1c], 0
mov ebx, esi
mov esi, edi
jmp 0x4060c6
mov dword [esp + 8], 0
mov edi, dword [ebp + 0x38]
test edi, edi
je 0x4060fd
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 0x4060ee
add ebx, edi
mov dword [esp + 0xc], ebx
adc esi, 0
jmp 0x406101
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x405a4e
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
cmp byte [esp + 0x20], 0
je 0x406164
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 0x18]
push dword [esp + 0x18]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x406148
mov eax, dword [ebp + 0x14]
add dword [esp + 0xc], eax
adc dword [esp + 0x10], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
jmp 0x406229
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 0x405a4e
cmp dword [ebp + 0x14], 0
je 0x406229
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x18]
mov ecx, eax
cmp eax, 0xa
jl 0x4061a5
mov ecx, 0xa
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x43da58]
test edx, edx
jne 0x4061c4
or eax, 0x80000
lea ecx, [esp + 0x50]
push eax
push ecx
push 0x406640
mov esi, dword [esp + 0x10]
push esi
call fcn.00404c00
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.004037c0
add esp, 0x18
cmp eax, 1
jne 0x406328
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
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 + 0x30]
mov eax, dword [esp + 0x34]
mov esi, ecx
mov dword [esp + 0x18], eax
or ecx, eax
je 0x406441
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 + 0x40]
mov edx, dword [esp + 0x44]
cmp dword [esp + 8], 0
je 0x406344
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 + 0x48], 0x38
mov dword [esp + 0x9c], 0x30
mov ecx, 0x28
mov dword [esp + 0x20], 0x18
mov dword [esp + 4], 0x17
mov eax, dword [esp + 0x18]
mov edx, eax
mov byte [esp + 0x17], al
mov dword [esp + 0xa0], 0x16
mov dword [esp + 0x98], 0x15
mov edi, 0x14
jmp 0x4063a4
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 0x405a4e
test edx, edx
je 0x406357
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x405a4e
mov dword [esp + 0x58], ecx
mov dword [esp + 0x48], 0x18
mov dword [esp + 0x9c], 0x10
mov ecx, 8
mov dword [esp + 4], 0xf
mov dword [esp + 0xa0], 0xe
mov edx, esi
mov byte [esp + 0x17], dl
mov dword [esp + 0x98], 0xd
mov edi, 0xc
mov dword [esp + 0x20], 0x10
mov edx, esi
mov ebx, dword [esp + 0x18]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x17]
mov byte [esp + edi + 0x50], al
test cl, 0x20
jne 0x4063bf
mov ebx, edx
mov edx, esi
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x18]
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 0x4063e5
mov ebx, edx
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
shrd esi, eax, cl
mov edx, esi
mov esi, dword [esp + 0xa0]
mov byte [esp + esi + 0x50], bl
shr eax, cl
test cl, 0x20
jne 0x406406
mov eax, edx
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x50], al
lea eax, [esp + 0x50]
mov esi, dword [esp + 0x20]
push esi
push eax
push dword [esp + 0x18]
push dword [esp + 0x18]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x405a4e
mov eax, dword [esp + 0x20]
add dword [esp + 0xc], eax
adc dword [esp + 0x10], 0
cmp dword [esp + 8], 0
je 0x4064a0
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x28]
mov eax, 0
sbb eax, dword [esp + 0x2c]
jb 0x406462
xor eax, eax
jmp 0x406466
lea eax, [esp + 0x28]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x30]
mov ecx, 0
sbb ecx, dword [esp + 0x34]
jb 0x406481
mov edi, 0
jmp 0x406485
lea edi, [esp + 0x40]
jae 0x40648b
lea edx, [esp + 0x30]
lea ecx, [esp + 0xa8]
push eax
push edi
call fcn.004065d0
add esp, 8
mov dword [esp + 0x1c], eax
movzx ebx, word [esp + 0x8c]
movzx esi, word [esp + 0x24]
movzx eax, word [esp + 0x1c]
movzx edi, word [esp + 0x3c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x54]
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0
push 0
push ebx
push esi
push dword [esp + 0xb8]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0xc8]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x4c]
push edi
call fcn.00406690
add esp, 0x4c
test eax, eax
je 0x405a4e
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x405a50