Function at 0x405a50
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 eax, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov ecx, dword [edx]
mov edi, dword [edx + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov eax, dword [ebp + 0x20]
mov esi, 6
test eax, eax
js 0x405a9f
mov esi, eax
mov eax, ebx
or eax, dword [esp + 0x2c]
mov dword [esp + 0x24], esi
je 0x405b00
mov ax, 8
test esi, 0x10000
jne 0x405abf
movzx eax, ax
or eax, 0x800
and esi, 0xf
mov dword [esp + 0x1c], esi
sete byte [esp + 0x20]
mov esi, dword [edx + 0x48]
mov dword [esp + 4], esi
test esi, esi
je 0x405bb4
cmp dword [edx + 0x14], 2
jne 0x405bb4
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x14], 0
je 0x405b33
test esi, esi
je 0x405bb4
cmp dword [ebp + 0x10], 0
jne 0x405b37
jmp 0x405bb4
cmp dword [ebp + 0x14], 0
je 0x405b27
mov eax, esi
xor eax, 0xfffffbff
mov esi, edi
mov edi, ecx
mov ecx, dword [esp + 0x24]
or ecx, 0x400
test ecx, eax
mov ecx, edi
mov edi, esi
mov esi, dword [esp + 0x24]
je 0x405aab
xor eax, eax
test esi, 0x10000
jne 0x405abf
jmp 0x405ab7
test esi, esi
je 0x405bb4
cmp word [ebp + 0x1c], 0
mov dword [esp + 0x94], eax
setne al
cmp dword [ebp + 0x18], 0
mov dword [esp + 0xc], ecx
sete cl
test cl, al
jne 0x405bb4
cmp dword [esp + 0x1c], 0xb
jae 0x405bb4
mov ecx, dword [esp + 4]
mov esi, dword [ecx + 0x34]
mov eax, dword [edx + 0x10]
mov dword [esp + 8], esi
test esi, esi
je 0x405b7c
cmp eax, 0xffffffff
jne 0x405ba1
mov dword [edx + 0x1c], 2
jmp 0x405bbb
cmp dword [esp + 0x2c], 0
jne 0x405b92
mov dword [esp + 8], 0
cmp eax, 0xffff
jne 0x405ba1
mov dword [ecx + 0x34], 1
mov dword [esp + 8], 1
mov eax, ebx
or eax, dword [esp + 0x2c]
je 0x405bc5
mov eax, dword [esp + 0x24]
and eax, 0x400
jne 0x405bc5
mov dword [edx + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 0xc]
cmp byte [esi], 0x2f
jne 0x405bd6
mov dword [edx + 0x1c], 0x19
jmp 0x405bbb
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0xa
and eax, 1
or byte [esp + 0x20], al
test ecx, 0x400
jne 0x405c35
mov ebx, dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push 0
call fcn.00403740
add esp, 0xc
mov dword [esp + 0x90], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0
mov eax, 0
cmp ebx, 4
setb cl
jb 0x405c2b
mov eax, dword [esp + 0x1c]
or byte [esp + 0x20], cl
mov dword [esp + 0x1c], eax
jmp 0x405c3f
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x90], eax
push esi
call fcn.004090a0
add esp, 4
cmp eax, 0x10000
jb 0x405c5e
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x405bbb
mov dword [esp + 0x44], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov dword [esp + 0x28], 0
mov ecx, dword [edx + 0x24]
or ecx, eax
mov ecx, 0
je 0x405c89
lea ecx, [eax - 1]
mov edx, dword [edx]
and edx, ecx
sub eax, edx
and eax, ecx
mov ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 4]
mov edx, dword [eax + 4]
movzx esi, word [ebp + 0x1c]
xor ecx, ecx
mov dword [esp + 0xa0], esi
mov eax, dword [esp + 0x44]
add esi, eax
setb cl
mov dword [esp + 0x8c], edx
add esi, edx
adc ecx, 0
mov edx, esi
mov dword [esp + 0x18], esi
add edx, 0x4a
adc ecx, 0
mov esi, 0xfffffffe
cmp esi, edx
sbb dword [esp + 0x28], ecx
jae 0x405cde
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x405bbb
cmp dword [esp + 8], 0
mov esi, dword [ebp + 0xc]
jne 0x405d55
mov esi, eax
shr esi, 0x1f
mov dword [esp + 8], 0
mov ecx, dword [esp + 0xa0]
add ecx, dword [ebp + 0x38]
mov edx, 0
adc edx, 0xffffffff
add ecx, dword [ebp + 0x40]
adc edx, 0
mov eax, dword [esp + 0x44]
add eax, eax
add ecx, eax
adc edx, esi
mov esi, dword [ebp + 0xc]
add ecx, dword [esp + 0x14]
adc edx, 0
add ecx, dword [esp + 0x8c]
adc edx, 0
mov eax, dword [ebp + 8]
add ecx, dword [eax]
adc edx, dword [eax + 4]
mov eax, dword [esp + 0x44]
add ecx, 0x72
adc edx, 0
cmp edx, 0xffffffff
je 0x405d55
mov ecx, dword [esp + 4]
mov dword [ecx + 0x34], 1
mov dword [esp + 8], 1
xor edx, edx
test eax, eax
je 0x405d82
cmp byte [eax + esi - 1], 0x2f
mov ecx, dword [ebp + 8]
jne 0x405d85
cmp dword [ebp + 0x14], 0
jne 0x405d76
mov edx, 0x10
or ebx, dword [esp + 0x2c]
je 0x405d85
mov dword [ecx + 0x1c], 0x18
jmp 0x405bbb
mov ecx, dword [ebp + 8]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 8]
test eax, eax
je 0x405d96
mov eax, 0x1c
mov edx, dword [esp + 0x18]
add eax, edx
add eax, 0x2e
mov esi, dword [esp + 4]
mov edx, dword [esi + 8]
cmp edx, eax
jae 0x405dfe
mov esi, 1
test edx, edx
je 0x405dcf
mov esi, edx
jmp 0x405dcf
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 0x405db7
push esi
mov eax, dword [esp + 8]
push dword [eax + 0xc]
push dword [eax]
mov ebx, dword [ebp + 8]
push dword [ebx + 0x34]
call dword [ebx + 0x30]
add esp, 0x10
test eax, eax
je 0x405f78
mov ecx, dword [esp + 4]
mov dword [ecx], eax
mov dword [ecx + 8], esi
mov esi, ecx
mov ecx, ebx
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
inc eax
cmp edx, eax
jae 0x405e5d
mov esi, 1
test edx, edx
je 0x405e2e
mov esi, edx
jmp 0x405e2e
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 0x405e16
push esi
mov eax, dword [esp + 8]
push dword [eax + 0x1c]
push dword [eax + 0x10]
mov ebx, dword [ebp + 8]
push dword [ebx + 0x34]
call dword [ebx + 0x30]
add esp, 0x10
test eax, eax
je 0x405f78
mov ecx, dword [esp + 4]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], esi
mov ecx, ebx
cmp dword [ebp + 0x14], 0
sete dl
xor eax, eax
or dl, byte [esp + 0x20]
jne 0x405e8a
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 0x405fc6
mov dword [esp + 8], eax
mov ebx, dword [esp + 0xc]
mov edx, ebx
mov esi, dword [esp + 0x14]
push esi
push edi
call fcn.00406690
add esp, 8
test eax, eax
je 0x405f84
test dword [esp + 0x24], 0x400
sete dl
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
add eax, esi
adc ecx, 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], eax
add ebx, esi
mov dword [esp + 0xc], ebx
adc edi, 0
mov dword [esp + 0x34], 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 dl, byte [esp + 0x20]
mov byte [esp + 0x28], dl
xor dl, 1
movzx edx, dl
shl edx, 3
mov dword [esp + 0x24], edx
mov eax, dword [esp + 4]
cmp dword [eax + 0x34], 0
je 0x405f99
mov dword [esp + 4], edi
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x14], 0
mov eax, 0xfffffffe
cmp eax, edi
mov edx, 0
sbb edx, ebx
mov esi, dword [esp + 0x18]
jb 0x405fd2
xor edx, edx
cmp eax, esi
sbb edx, ecx
jb 0x405fd2
xor eax, eax
mov edi, dword [ebp + 0x38]
jmp 0x406028
mov dword [ebx + 0x1c], 0x10
jmp 0x405bbb
push dword [esp + 8]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x405bbb
cmp dword [esp + 0x4c], 0
jne 0x4064aa
test edi, edi
jne 0x4064aa
mov dword [esp + 0x6c], 0x4034b50
cmp byte [esp + 0x28], 0
jne 0x406140
mov dl, 0x14
jmp 0x406142
mov dword [ecx + 0x1c], 0x10
jmp 0x405bbb
xor edx, edx
cmp eax, esi
mov eax, 0
sbb eax, ecx
jb 0x405fe3
xor eax, eax
jmp 0x405fe7
lea eax, [esp + 0x30]
mov ecx, 0xfffffffe
cmp ecx, edi
mov ecx, 0
sbb ecx, ebx
jb 0x405ffe
mov esi, 0
jmp 0x406002
lea esi, [esp + 0x48]
mov edi, dword [ebp + 0x38]
jae 0x40600b
lea edx, [esp + 0x38]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x14], ecx
push eax
push esi
call fcn.00406730
add esp, 8
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
lea edx, [eax + edi]
mov dword [esp + 0x6c], 0x4034b50
cmp byte [esp + 0x28], 0
mov dword [esp + 0x18], eax
jne 0x406042
mov bl, 0x14
jmp 0x406044
xor ebx, ebx
mov byte [esp + 0x70], bl
mov byte [esp + 0x71], 0
movzx ebx, word [esp + 0x94]
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 + 0x44]
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 esi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x4062ab
mov edi, dword [esp + 0xc]
add edi, 0x1e
mov eax, esi
mov esi, dword [esp + 4]
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 0x40629b
add edi, ebx
adc esi, 0
cmp dword [esp + 0x14], 0
mov ecx, edi
je 0x40621d
lea eax, [esp + 0xa8]
mov edi, dword [esp + 0x18]
push edi
push eax
push esi
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
mov dword [esp + 0x20], ecx
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x4062b7
mov ecx, dword [esp + 0xc]
add ecx, edi
adc esi, 0
mov dword [esp + 4], esi
jmp 0x406229
xor edx, edx
mov eax, dword [esp + 0x18]
mov dword [esp + 4], edi
mov byte [esp + 0x70], dl
mov byte [esp + 0x71], 0
mov ebx, dword [esp + 0x94]
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 + 0x44]
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 0x4062ab
mov edi, dword [esp + 0xc]
add edi, 0x1e
mov eax, esi
mov esi, dword [esp + 4]
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 0x40629b
add edi, ebx
adc esi, 0
mov dword [esp + 4], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov ecx, edi
jmp 0x406229
mov dword [esp + 4], esi
mov dword [esp + 0x14], 0
mov ebx, dword [ebp + 0x38]
test ebx, ebx
je 0x406257
push ebx
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]
add esp, 0x14
cmp eax, ebx
jne 0x4062b7
add esi, ebx
adc edi, 0
mov dword [esp + 4], edi
mov ecx, esi
cmp byte [esp + 0x20], 0
mov dword [esp + 0xc], ecx
je 0x4062c6
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 0xc]
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x40629b
mov eax, dword [ebp + 0x14]
add dword [esp + 0xc], eax
adc dword [esp + 4], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
jmp 0x40638b
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 0x405bbb
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x405bbb
cmp dword [ebp + 0x14], 0
je 0x40638b
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x1c]
mov ecx, eax
cmp eax, 0xa
jb 0x406307
mov ecx, 0xa
xor eax, eax
mov edx, dword [esp + 0x1c]
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x43da58]
test edx, edx
jne 0x406326
or eax, 0x80000
lea ecx, [esp + 0x50]
push eax
push ecx
push 0x4067a0
mov esi, dword [esp + 0x14]
push esi
call fcn.00404cf0
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.00403890
add esp, 0x18
cmp eax, 1
jne 0x40648a
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 + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], 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 + 0x38]
mov eax, dword [esp + 0x3c]
mov esi, ecx
mov dword [esp + 0x1c], eax
or ecx, eax
je 0x4065a3
mov dword [esp + 0x50], 0x8074b50
mov edx, dword [esp + 0x90]
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 + 0x14], 0
je 0x4064a6
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 + 0x28], 0x38
mov dword [esp + 0x9c], 0x30
mov ecx, 0x28
mov dword [esp + 0x20], 0x18
mov dword [esp + 8], 0x17
mov eax, dword [esp + 0x1c]
mov edx, eax
mov byte [esp + 0x13], al
mov dword [esp + 0x8c], 0x16
mov dword [esp + 0x98], 0x15
mov edi, 0x14
jmp 0x406506
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 0x405bbb
test edx, edx
je 0x4064b9
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x405bbb
mov dword [esp + 0x58], ecx
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x9c], 0x10
mov ecx, 8
mov dword [esp + 8], 0xf
mov dword [esp + 0x8c], 0xe
mov edx, esi
mov byte [esp + 0x13], dl
mov dword [esp + 0x98], 0xd
mov edi, 0xc
mov dword [esp + 0x20], 0x10
mov edx, esi
mov ebx, dword [esp + 0x1c]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x13]
mov byte [esp + edi + 0x50], al
test cl, 0x20
jne 0x406521
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 0x406547
mov ebx, edx
mov ecx, dword [esp + 0x28]
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 0x406568
mov eax, edx
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x50], al
lea eax, [esp + 0x50]
mov esi, dword [esp + 0x20]
push esi
push eax
push dword [esp + 0xc]
push dword [esp + 0x18]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x405bbb
mov eax, dword [esp + 0x20]
add dword [esp + 0xc], eax
adc dword [esp + 4], 0
cmp dword [esp + 0x14], 0
je 0x406602
xor eax, eax
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x30]
mov ecx, 0
sbb ecx, dword [esp + 0x34]
jb 0x4065c4
xor edi, edi
jmp 0x4065c8
lea edi, [esp + 0x30]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x38]
mov ecx, 0
sbb ecx, dword [esp + 0x3c]
jb 0x4065e3
mov edx, 0
jmp 0x4065e7
lea edx, [esp + 0x38]
jae 0x4065ed
lea eax, [esp + 0x48]
lea ecx, [esp + 0xa8]
push edi
push eax
call fcn.00406730
add esp, 8
mov dword [esp + 0x18], eax
movzx ebx, word [esp + 0x94]
movzx esi, word [esp + 0x24]
movzx eax, word [esp + 0x18]
movzx edi, word [esp + 0x44]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x34]
push dword [esp + 0x40]
push dword [esp + 0x40]
push ebx
push esi
push dword [esp + 0xac]
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 + 0x50]
push edi
call fcn.004067f0
add esp, 0x44
test eax, eax
je 0x405bbb
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov ecx, dword [esp + 4]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x405bbd