Function at 0x405720
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 + 0x34], edi
mov dword [esp + 0x30], esi
mov ebx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x28], ebx
mov dword [esp], 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 0x40576e
mov eax, ecx
mov dword [esp + 8], ebx
mov ecx, esi
or ecx, edi
je 0x405782
mov ecx, eax
and ecx, 0x400
jmp 0x405796
mov ebx, eax
and ebx, 0x400
xor ecx, ecx
cmp dword [ebp + 0x14], 0
je 0x40579c
test ebx, ebx
jne 0x40579c
mov ebx, ecx
mov cx, 8
test eax, 0x10000
jne 0x4057ac
movzx ecx, cx
or ecx, 0x800
mov dword [esp + 0x80], ecx
mov ecx, eax
and ecx, 0xf
mov dword [esp + 0xc], ecx
sete byte [esp + 0x1c]
test ebx, ebx
setne cl
mov edx, dword [edx + 0x48]
mov dword [esp + 0x14], edx
test edx, edx
je 0x40587d
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 2
jne 0x40587d
cmp dword [ebp + 0x14], 0
sete dl
cmp dword [ebp + 0x10], 0
setne ch
cmp dword [ebp + 0xc], 0
je 0x40587d
or ch, dl
je 0x40587d
cmp word [ebp + 0x1c], 0
setne dl
cmp dword [ebp + 0x18], 0
sete ch
test ch, dl
jne 0x40587d
cmp dword [esp + 0xc], 0xb
jae 0x40587d
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + 0x34]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x405842
cmp edx, 0xffffffff
jne 0x405869
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x405887
test edi, edi
jne 0x405856
mov dword [esp + 0x24], 0
cmp edx, 0xffff
jne 0x405869
mov edx, dword [esp + 0x14]
mov dword [edx + 0x34], 1
mov dword [esp + 0x24], 1
mov edx, esi
or edx, edi
je 0x405891
not eax
mov edx, eax
or edx, 0x400
cmp edx, eax
jne 0x405891
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 eax, dword [ebp + 0xc]
cmp byte [eax], 0x2f
je 0x405902
or byte [esp + 0x1c], cl
mov ebx, dword [esp + 4]
test ebx, ebx
je 0x4058b1
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x84], eax
jmp 0x4058f0
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push 0
call fcn.00403320
add esp, 0xc
mov dword [esp + 0x84], eax
xor edi, edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
mov eax, 0
cmp esi, 4
setb cl
jb 0x4058e8
mov eax, dword [esp + 0xc]
or byte [esp + 0x1c], cl
mov dword [esp + 0xc], eax
push dword [ebp + 0xc]
call fcn.00408e10
add esp, 4
cmp eax, 0x10000
jb 0x405911
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x405887
mov edx, dword [ebp + 8]
mov ecx, eax
mov eax, dword [edx + 0x20]
mov edx, dword [edx + 0x24]
or edx, eax
mov dword [esp + 0x3c], ecx
je 0x405938
lea edx, [eax - 1]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
and ecx, edx
sub eax, ecx
and eax, edx
mov dword [esp + 0x20], eax
jmp 0x405940
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
movzx eax, word [ebp + 0x1c]
xor edx, edx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x98], eax
add ebx, eax
setb dl
add ebx, ecx
adc edx, 0
mov eax, ebx
mov dword [esp + 0x10], ebx
add ebx, 0x4b
adc edx, 0xffffffff
cmp ebx, 1
sbb edx, 0xffffffff
jae 0x405985
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x405887
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4059ff
mov eax, dword [esp + 0x3c]
mov edx, eax
shr edx, 0x1f
add eax, eax
xor ebx, ebx
add ecx, dword [esp + 0x98]
setb bl
add ecx, dword [ebp + 0x38]
adc ebx, 0
add ecx, eax
adc ebx, edx
add ecx, dword [esp + 0x20]
adc ebx, 0
mov eax, dword [ebp + 8]
add ecx, dword [eax]
adc ebx, dword [eax + 4]
add ecx, 0x62
mov eax, 0xffffffff
adc ebx, eax
mov edx, ecx
mov eax, dword [ebp + 0x40]
and edx, eax
mov eax, edx
shr eax, 0x1f
add edx, edx
xor ecx, dword [ebp + 0x40]
add ecx, edx
adc eax, ebx
add ecx, 0x10
mov ecx, eax
adc ecx, 0
xor eax, eax
mov edx, 0xffffffff
cmp ecx, edx
jae 0x4059ff
mov eax, dword [esp + 0x14]
mov dword [eax + 0x34], 1
mov eax, 1
xor edx, edx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x405a39
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
cmp byte [ecx + eax - 1], 0x2f
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 8]
jne 0x405a3c
cmp dword [ebp + 0x14], 0
jne 0x405a2d
mov edx, 0x10
or esi, edi
je 0x405a3c
mov dword [ecx + 0x1c], 0x18
jmp 0x405887
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], edx
test eax, eax
je 0x405a49
mov eax, 0x1c
mov edx, dword [esp + 0x10]
add eax, edx
add eax, 0x2e
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 8]
cmp edx, eax
jae 0x405aab
mov esi, 1
test edx, edx
je 0x405a82
mov esi, edx
jmp 0x405a82
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 0x405a6a
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 0x405c14
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov ecx, edi
mov edi, ebx
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
inc eax
cmp edx, eax
jae 0x405b04
mov esi, 1
test edx, edx
je 0x405adb
mov esi, edx
jmp 0x405adb
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 0x405ac3
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 0x405c14
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 + 0x1c]
mov esi, dword [esp + 0x20]
jne 0x405b35
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 0x405c62
mov dword [esp + 0x10], eax
mov edi, dword [esp + 8]
mov edx, edi
push esi
mov ebx, esi
mov esi, dword [esp + 4]
push esi
call fcn.00406320
add esp, 8
test eax, eax
je 0x405c20
cmp dword [esp + 4], 0
sete dl
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add eax, ebx
adc ecx, 0
mov dword [esp + 4], eax
mov dword [esp + 0x28], eax
add edi, ebx
mov ebx, edx
mov dword [esp + 8], edi
adc esi, 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x60], 0
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 word [esp + 0x7c], 0
and bl, byte [esp + 0x1c]
mov edx, ebx
xor dl, 1
movzx edx, dl
shl edx, 3
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x34], 0
je 0x405c35
mov dword [esp], esi
mov eax, 0xfffffffe
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
cmp eax, edi
mov edx, 0
sbb edx, esi
jb 0x405c6e
cmp eax, dword [esp + 4]
mov edx, 0
sbb edx, ecx
jb 0x405c6e
xor edi, edi
xor eax, eax
mov esi, dword [esp + 4]
jmp 0x405cc3
mov dword [edi + 0x1c], 0x10
jmp 0x405887
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x405887
cmp dword [esp + 0x44], 0
jne 0x406128
test esi, esi
jne 0x406128
mov dword [esp + 0x60], 0x4034b50
test bl, bl
mov dword [esp], esi
jne 0x405dd6
mov dl, 0x14
jmp 0x405dd8
mov dword [ecx + 0x1c], 0x10
jmp 0x405887
mov edx, 0xfffffffe
cmp eax, dword [esp + 4]
mov eax, 0
sbb eax, ecx
jb 0x405c84
xor eax, eax
jmp 0x405c88
lea eax, [esp + 0x28]
cmp edx, edi
mov ecx, 0
sbb ecx, esi
jb 0x405c9a
mov esi, 0
jmp 0x405c9e
lea esi, [esp + 0x40]
jb 0x405ca4
xor edx, edx
jmp 0x405ca8
lea edx, [esp + 0x30]
lea edi, [esp + 0xa0]
mov ecx, edi
push eax
push esi
call fcn.004063c0
add esp, 8
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x38]
add edx, eax
mov dword [esp + 0x60], 0x4034b50
test bl, bl
mov dword [esp + 0x14], eax
jne 0x405cdc
mov bl, 0x14
jmp 0x405cde
xor ebx, ebx
mov byte [esp + 0x64], bl
mov byte [esp + 0x65], 0
movzx ebx, word [esp + 0x80]
mov byte [esp + 0x66], bl
mov byte [esp + 0x67], bh
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x68], bl
mov dword [esp + 0x69], 0
mov dword [esp + 0x6d], 0
mov dword [esp + 0x71], 0
mov dword [esp + 0x75], 0
mov byte [esp + 0x79], 0
mov ebx, dword [esp + 0x3c]
mov byte [esp + 0x7a], bl
mov byte [esp + 0x7b], bh
mov byte [esp + 0x7c], dl
mov byte [esp + 0x7d], dh
lea edx, [esp + 0x60]
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 0x405f34
mov dword [esp + 4], edi
mov edi, dword [esp + 8]
add edi, 0x1e
mov eax, dword [esp]
adc eax, 0
push ebx
push dword [ebp + 0xc]
mov dword [esp + 8], eax
push eax
push edi
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x405dcd
mov eax, edi
and eax, ebx
mov esi, eax
shr esi, 0x1f
add eax, eax
xor edi, ebx
add edi, eax
adc esi, dword [esp]
cmp dword [esp + 4], 0
mov ebx, edi
je 0x405e95
lea eax, [esp + 0xa0]
mov edi, dword [esp + 0x14]
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 0x405ecf
add ebx, edi
adc esi, 0
mov dword [esp], esi
jmp 0x405ea0
push dword [esp + 0x10]
jmp 0x405f2b
xor edx, edx
mov byte [esp + 0x64], dl
mov ebx, dword [esp + 0x80]
movzx edx, bx
mov byte [esp + 0x66], bl
mov byte [esp + 0x67], dh
mov edx, dword [esp + 0x20]
mov byte [esp + 0x68], dl
mov dword [esp + 0x69], 0
mov dword [esp + 0x6d], 0
mov dword [esp + 0x71], 0
mov dword [esp + 0x75], 0
mov byte [esp + 0x79], 0
mov ebx, dword [esp + 0x3c]
mov byte [esp + 0x7a], bl
mov byte [esp + 0x7b], bh
mov edx, dword [ebp + 0x38]
mov byte [esp + 0x7c], dl
mov byte [esp + 0x7d], dh
lea edx, [esp + 0x60]
push 0x1e
push edx
push ecx
push dword [esp + 0x10]
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x405f34
mov eax, esi
mov esi, dword [esp + 8]
add esi, 0x1e
mov edi, dword [esp]
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 0x405f24
add esi, ebx
adc edi, 0
mov dword [esp + 0x14], 0
mov dword [esp], edi
mov dword [esp + 4], 0
mov ebx, esi
jmp 0x405ea0
mov dword [esp], esi
mov dword [esp + 4], 0
mov edi, dword [ebp + 0x38]
test edi, edi
je 0x405ede
push edi
push dword [ebp + 0x34]
mov esi, dword [esp + 8]
push esi
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x405ecf
add ebx, edi
mov dword [esp + 8], ebx
adc esi, 0
mov dword [esp], esi
jmp 0x405ee2
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x405887
mov dword [esp + 8], ebx
cmp byte [esp + 0x1c], 0
je 0x405f40
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push dword [esp + 8]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x405f24
mov eax, dword [ebp + 0x14]
add dword [esp + 8], eax
adc dword [esp], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
jmp 0x406003
push dword [esp + 0x10]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x405887
cmp dword [ebp + 0x14], 0
je 0x406003
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esp]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0xc]
mov ecx, eax
cmp eax, 0xa
jb 0x405f80
mov ecx, 0xa
xor eax, eax
mov edx, dword [esp + 0xc]
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x435d38]
test edx, edx
jne 0x405f9f
or eax, 0x80000
lea ecx, [esp + 0x48]
push eax
push ecx
push 0x406430
mov esi, dword [esp + 0x1c]
push esi
call fcn.004048e0
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.00403470
add esp, 0x18
cmp eax, 1
jne 0x406108
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
push dword [esp + 0x10]
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 dword [esp + 0xc], ecx
or ecx, eax
je 0x406228
mov esi, eax
mov dword [esp + 0x48], 0x8074b50
mov edx, dword [esp + 0x84]
mov byte [esp + 0x4c], dl
mov byte [esp + 0x4d], dh
mov ecx, edx
shr ecx, 0x10
mov byte [esp + 0x4e], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x4f], cl
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
cmp dword [esp + 4], 0
je 0x406124
mov byte [esp + 0x50], cl
mov byte [esp + 0x51], ch
mov ebx, ecx
shr ebx, 0x10
mov byte [esp + 0x52], bl
mov ebx, edx
shr ebx, 0x10
shr ecx, 0x18
mov byte [esp + 0x53], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x54], dl
mov byte [esp + 0x55], dh
mov byte [esp + 0x56], bl
mov byte [esp + 0x57], cl
mov edx, dword [esp + 0xc]
mov byte [esp + 0x58], dl
mov byte [esp + 0x59], dh
mov ecx, edx
shr ecx, 0x10
mov byte [esp + 0x5a], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x5b], cl
mov dword [esp + 0x94], 0x38
mov dword [esp + 0x8c], 0x30
mov ecx, 0x28
mov dword [esp + 0x1c], 0x18
mov dword [esp + 0x10], 0x17
mov eax, esi
mov edx, eax
mov byte [esp + 0x1b], al
mov dword [esp + 0x90], 0x16
mov dword [esp + 0x88], 0x15
mov edi, 0x14
jmp 0x406189
push dword [esp + 0x10]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x405887
test edx, edx
je 0x406137
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x405887
mov dword [esp + 0x50], ecx
mov dword [esp + 0x94], 0x18
mov dword [esp + 0x8c], 0x10
mov ecx, 8
mov dword [esp + 0x10], 0xf
mov dword [esp + 0x90], 0xe
mov edx, dword [esp + 0xc]
mov byte [esp + 0x1b], dl
mov dword [esp + 0x88], 0xd
mov edi, 0xc
mov dword [esp + 0x1c], 0x10
mov edx, dword [esp + 0xc]
mov ebx, esi
shrd edx, esi, cl
shr ebx, cl
movzx eax, byte [esp + 0x1b]
mov byte [esp + edi + 0x48], al
test cl, 0x20
jne 0x4061a4
mov ebx, edx
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x8c]
mov eax, esi
shrd edx, esi, cl
mov edi, dword [esp + 0x88]
mov byte [esp + edi + 0x48], bl
mov ebx, esi
shr ebx, cl
test cl, 0x20
jne 0x4061ca
mov ebx, edx
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0xc]
shrd edx, esi, cl
mov edi, dword [esp + 0x90]
mov byte [esp + edi + 0x48], bl
shr esi, cl
test cl, 0x20
jne 0x4061ec
mov esi, edx
mov ecx, dword [esp + 0x10]
mov eax, esi
mov byte [esp + ecx + 0x48], al
lea eax, [esp + 0x48]
mov esi, dword [esp + 0x1c]
push esi
push eax
push dword [esp + 8]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x405887
mov eax, dword [esp + 0x1c]
add dword [esp + 8], eax
adc dword [esp], 0
mov esi, dword [ebp + 0x3c]
cmp dword [esp + 4], 0
je 0x406285
xor edx, edx
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x28]
mov eax, 0
sbb eax, dword [esp + 0x2c]
jb 0x40624c
xor eax, eax
jmp 0x406250
lea eax, [esp + 0x28]
cmp ecx, dword [esp + 0x30]
mov ecx, 0
sbb ecx, dword [esp + 0x34]
jb 0x406266
mov ebx, 0
jmp 0x40626a
lea ebx, [esp + 0x40]
jae 0x406270
lea edx, [esp + 0x30]
lea ecx, [esp + 0xa0]
push eax
push ebx
call fcn.004063c0
add esp, 8
mov dword [esp + 0x14], eax
movzx edi, word [esp + 0x80]
movzx eax, word [esp + 0x20]
movzx ecx, word [esp + 0x14]
mov dword [esp + 0xc], ecx
movzx ebx, word [esp + 0x3c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push esi
push dword [esp + 0x2c]
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0
push 0
push edi
push eax
push dword [esp + 0xa8]
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 dword [esp + 0x4c]
push dword [esp + 0x48]
push ebx
call fcn.00406480
add esp, 0x4c
test eax, eax
je 0x405887
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov ecx, dword [esp]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x405889