Function at 0x405a80
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 + 0x3c], 0
mov dword [esp + 0x38], 0
mov ecx, dword [ebp + 0x20]
mov eax, 6
test ecx, ecx
js 0x405acf
mov eax, ecx
mov dword [esp + 0x18], ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x4c], esi
mov ecx, esi
or ecx, edi
je 0x405aea
mov ecx, eax
and ecx, 0x400
jmp 0x405afc
mov esi, eax
and esi, 0x400
xor ecx, ecx
test ebx, ebx
je 0x405b02
test esi, esi
jne 0x405b02
mov esi, ecx
mov cx, 8
test eax, 0x10000
mov dword [esp + 0x14], edi
jne 0x405b16
movzx ecx, cx
or ecx, 0x800
mov dword [esp + 0x94], ecx
mov dword [esp + 0x24], eax
mov edi, eax
and edi, 0xf
sete cl
test esi, esi
setne ch
mov eax, dword [edx + 0x48]
mov dword [esp + 4], eax
test eax, eax
je 0x405ba0
cmp dword [edx + 0x14], 2
jne 0x405ba0
mov dword [esp + 0xc], esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x405b5a
test esi, esi
mov esi, dword [esp + 0xc]
je 0x405ba0
cmp dword [ebp + 0x10], 0
jne 0x405b62
jmp 0x405ba0
test esi, esi
mov esi, dword [esp + 0xc]
je 0x405ba0
cmp word [ebp + 0x1c], 0
setne dl
cmp dword [ebp + 0x18], 0
mov al, ch
sete ch
test ch, dl
mov edx, dword [ebp + 8]
jne 0x405ba0
cmp edi, 0xb
jae 0x405ba0
mov ch, al
mov ebx, dword [esp + 4]
mov eax, dword [ebx + 0x34]
mov edx, dword [edx + 0x10]
test eax, eax
je 0x405bb1
cmp edx, 0xffffffff
jne 0x405bd2
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x405ba7
mov dword [edx + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [esp + 0x14], 0
jne 0x405bc2
xor eax, eax
cmp edx, 0xffff
jne 0x405bd2
mov edx, dword [esp + 4]
mov dword [edx + 0x34], 1
mov eax, 1
mov edx, dword [esp + 0x4c]
or edx, dword [esp + 0x14]
je 0x405bec
test esi, esi
jne 0x405bec
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
jmp 0x405ba7
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0x2f
mov edx, dword [ebp + 8]
jne 0x405c00
mov dword [edx + 0x1c], 0x19
jmp 0x405ba7
mov dword [esp + 8], eax
or cl, ch
test dword [esp + 0x24], 0x400
mov byte [esp + 0x20], cl
jne 0x405c60
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push 0
call fcn.004037d0
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
mov eax, 0
cmp esi, 4
setb cl
mov esi, dword [esp + 4]
jb 0x405c4e
mov eax, edi
or byte [esp + 0x20], cl
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x4c], ecx
mov edi, eax
mov eax, dword [ebp + 0xc]
jmp 0x405c6a
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 4]
push eax
call fcn.00409070
add esp, 4
cmp eax, 0x10000
jb 0x405c89
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x405ba7
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x24], eax
movzx eax, word [ebp + 0x1c]
mov dword [esp + 0x98], eax
mov dword [esp + 0x48], 0
mov ebx, 0xfffffffe
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
or ecx, eax
mov ecx, 0
je 0x405ccc
lea ecx, [ebx + eax]
inc ecx
mov edx, dword [edx]
and edx, ecx
sub eax, edx
and eax, ecx
mov ecx, eax
mov dword [esp + 0x44], ecx
mov edx, dword [esi + 4]
xor ecx, ecx
mov ebx, dword [esp + 0x98]
mov eax, dword [esp + 0x24]
add ebx, eax
setb cl
mov dword [esp + 0x8c], edx
add ebx, edx
adc ecx, 0
mov edx, ebx
mov dword [esp + 0x90], ebx
add edx, 0x4a
adc ecx, 0
mov ebx, 0xfffffffe
cmp ebx, edx
sbb dword [esp + 0x48], ecx
jae 0x405d1c
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x405ba7
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x405d85
shr eax, 0x1f
mov dword [esp + 8], eax
xor ebx, ebx
mov ecx, dword [esp + 0x98]
add ecx, dword [ebp + 0x38]
mov edx, 0
adc edx, 0xffffffff
add ecx, dword [ebp + 0x40]
adc edx, 0
mov eax, dword [esp + 0x24]
add eax, eax
add ecx, eax
adc edx, dword [esp + 8]
add ecx, dword [esp + 0x44]
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 + 0x24]
add ecx, 0x72
adc edx, 0
cmp edx, 0xffffffff
je 0x405d85
mov dword [esi + 0x34], 1
mov ebx, 1
xor edx, edx
test eax, eax
je 0x405dbd
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x24]
cmp byte [ecx + eax - 1], 0x2f
mov ecx, dword [ebp + 8]
jne 0x405dc0
cmp dword [ebp + 0x14], 0
jne 0x405db1
mov edx, 0x10
mov eax, dword [esp + 0x4c]
or eax, dword [esp + 0x14]
je 0x405dc0
mov dword [ecx + 0x1c], 0x18
jmp 0x405ba7
mov ecx, dword [ebp + 8]
mov dword [esp + 0x4c], edx
test ebx, ebx
je 0x405dcd
mov ebx, 0x1c
mov eax, dword [esp + 0x90]
add eax, ebx
add eax, 0x2e
mov edx, dword [esi + 8]
cmp edx, eax
mov dword [esp + 0x14], edi
jae 0x405e34
mov esi, 1
test edx, edx
je 0x405e09
mov esi, edx
jmp 0x405e09
mov ecx, esi
or ecx, 2
mov edx, esi
and edx, 2
imul ecx, edx
xor edx, 2
and esi, 0xfffffffd
imul esi, edx
add esi, ecx
cmp esi, eax
jb 0x405df1
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 0x405fb1
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 0x405e8f
mov esi, 1
test edx, edx
je 0x405e64
mov esi, edx
jmp 0x405e64
mov ecx, esi
or ecx, 2
mov edx, esi
and edx, 2
imul ecx, edx
xor edx, 2
and esi, 0xfffffffd
imul esi, edx
add esi, ecx
cmp esi, eax
jb 0x405e4c
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 0x405fb1
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 0x405ebc
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 0x4060c7
mov dword [esp + 8], eax
mov edi, dword [esp + 0x18]
mov edx, edi
mov ebx, dword [esp + 0x44]
push ebx
mov esi, dword [esp + 0x14]
push esi
call fcn.00406690
add esp, 8
test eax, eax
je 0x405fbd
cmp dword [esp + 0xc], 0
setne dl
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add eax, ebx
adc ecx, 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x28], eax
add edi, ebx
mov dword [esp + 0x18], edi
adc esi, 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
movzx ebx, byte [esp + 0x20]
xor bl, 1
or bl, dl
movzx edx, bl
shl edx, 3
mov dword [esp + 0x48], edx
mov eax, dword [esp + 4]
cmp dword [eax + 0x34], 0
je 0x405fd2
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp + 4], 0
mov eax, 0xfffffffe
cmp eax, edi
mov edx, 0
sbb edx, esi
jb 0x4060d3
xor edx, edx
cmp eax, dword [esp + 0xc]
sbb edx, ecx
jb 0x4060d3
xor eax, eax
mov esi, dword [esp + 0xc]
jmp 0x406128
mov dword [edi + 0x1c], 0x10
jmp 0x405ba7
push dword [esp + 8]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x405ba7
cmp dword [esp + 0x3c], 0
jne 0x4064a6
test esi, esi
jne 0x4064a6
mov dword [esp + 0x10], esi
mov dword [esp + 0x6c], 0x4034b50
test bl, bl
je 0x405ff7
mov bl, 0x14
mov byte [esp + 0x70], bl
mov ebx, dword [esp + 0x94]
movzx edx, bx
mov byte [esp + 0x72], bl
mov byte [esp + 0x73], dh
mov edx, dword [esp + 0x48]
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 + 0x24]
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 dword [esp + 0x18]
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x4062a9
mov edi, dword [esp + 0x18]
add edi, 0x1e
mov eax, esi
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 0x406299
add edi, ebx
adc esi, 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
mov ebx, edi
jmp 0x406230
mov dword [ecx + 0x1c], 0x10
jmp 0x405ba7
xor edx, edx
cmp eax, dword [esp + 0xc]
mov eax, 0
sbb eax, ecx
jb 0x4060e6
xor eax, eax
jmp 0x4060ea
lea eax, [esp + 0x28]
mov ecx, 0xfffffffe
cmp ecx, edi
mov ecx, 0
sbb ecx, esi
jb 0x406101
mov esi, 0
jmp 0x406105
lea esi, [esp + 0x38]
jae 0x40610b
lea edx, [esp + 0x30]
lea ecx, [esp + 0xa8]
mov dword [esp + 4], ecx
push eax
push esi
call fcn.00406730
add esp, 8
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x38]
mov dword [esp + 0xc], eax
add edx, eax
mov dword [esp + 0x6c], 0x4034b50
test bl, bl
je 0x40613f
mov bl, 0x14
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 + 0x48]
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 + 0x24]
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 0x4062a9
mov edi, dword [esp + 0x18]
add edi, 0x1e
mov eax, esi
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 0x406299
add edi, ebx
adc esi, 0
cmp dword [esp + 4], 0
mov ebx, edi
je 0x406228
lea eax, [esp + 0xa8]
mov edi, dword [esp + 0xc]
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 0x4062b5
add ebx, edi
adc esi, 0
jmp 0x406230
mov dword [esp + 4], 0
mov edi, dword [ebp + 0x38]
test edi, edi
je 0x406252
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 0x4062b5
add ebx, edi
adc esi, 0
mov edi, dword [ebp + 0x14]
movzx eax, byte [esp + 0x20]
test al, al
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], esi
je 0x4062c4
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 0x406299
mov eax, dword [ebp + 0x14]
add dword [esp + 0x18], eax
adc dword [esp + 0x10], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
jmp 0x406387
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 0x405ba7
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x405ba7
test edi, edi
je 0x406387
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x18]
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 + 0x14]
mov ecx, eax
cmp eax, 0xa
jb 0x406303
mov ecx, 0xa
xor eax, eax
mov edx, dword [esp + 0x14]
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x438a58]
test edx, edx
jne 0x406322
or eax, 0x80000
lea ecx, [esp + 0x50]
push eax
push ecx
push 0x4067a0
mov esi, dword [esp + 0x14]
push esi
call fcn.00404d50
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.00403910
add esp, 0x18
cmp eax, 1
jne 0x406486
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], 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 + 0x30]
mov eax, dword [esp + 0x34]
mov esi, ecx
mov dword [esp + 0x14], eax
or ecx, eax
je 0x40659f
mov dword [esp + 0x50], 0x8074b50
mov edx, dword [esp + 0xa0]
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 + 0x38]
mov edx, dword [esp + 0x3c]
cmp dword [esp + 4], 0
je 0x4064a2
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 + 0x90], 0x38
mov dword [esp + 0x8c], 0x30
mov ecx, 0x28
mov dword [esp + 0x20], 0x18
mov dword [esp + 8], 0x17
mov eax, dword [esp + 0x14]
mov edx, eax
mov byte [esp + 0x1f], al
mov dword [esp + 0x44], 0x16
mov dword [esp + 0x9c], 0x15
mov edi, 0x14
jmp 0x406502
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 0x405ba7
test edx, edx
je 0x4064b5
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x405ba7
mov dword [esp + 0x58], ecx
mov dword [esp + 0x90], 0x18
mov dword [esp + 0x8c], 0x10
mov ecx, 8
mov dword [esp + 8], 0xf
mov dword [esp + 0x44], 0xe
mov edx, esi
mov byte [esp + 0x1f], dl
mov dword [esp + 0x9c], 0xd
mov edi, 0xc
mov dword [esp + 0x20], 0x10
mov edx, esi
mov ebx, dword [esp + 0x14]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x1f]
mov byte [esp + edi + 0x50], al
test cl, 0x20
jne 0x40651d
mov ebx, edx
mov edx, esi
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x14]
shrd edx, eax, cl
mov edi, dword [esp + 0x9c]
mov byte [esp + edi + 0x50], bl
mov ebx, eax
shr ebx, cl
test cl, 0x20
jne 0x406543
mov ebx, edx
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x14]
shrd esi, eax, cl
mov edx, esi
mov esi, dword [esp + 0x44]
mov byte [esp + esi + 0x50], bl
shr eax, cl
test cl, 0x20
jne 0x406564
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 + 0x18]
push dword [esp + 0x24]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x405ba7
mov eax, dword [esp + 0x20]
add dword [esp + 0x18], eax
adc dword [esp + 0x10], 0
cmp dword [esp + 4], 0
je 0x4065fe
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x28]
mov eax, 0
sbb eax, dword [esp + 0x2c]
jb 0x4065c0
xor eax, eax
jmp 0x4065c4
lea eax, [esp + 0x28]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x30]
mov ecx, 0
sbb ecx, dword [esp + 0x34]
jb 0x4065df
mov edi, 0
jmp 0x4065e3
lea edi, [esp + 0x38]
jae 0x4065e9
lea edx, [esp + 0x30]
lea ecx, [esp + 0xa8]
push eax
push edi
call fcn.00406730
add esp, 8
mov dword [esp + 0xc], eax
movzx ebx, word [esp + 0x94]
movzx esi, word [esp + 0x48]
movzx eax, word [esp + 0xc]
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 + 0x54]
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0
push ebx
push esi
push dword [esp + 0xc0]
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0xcc]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x44]
push edi
call fcn.004067f0
add esp, 0x48
test eax, eax
je 0x405ba7
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x405ba9