Function at 0x405480
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 + 0x2c], edi
mov dword [esp + 0x28], esi
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov eax, dword [ebp + 0x20]
mov ebx, 6
test eax, eax
js 0x4054d3
mov ebx, eax
mov dword [esp + 0x34], esi
mov eax, esi
or eax, edi
je 0x4054e6
mov eax, ebx
and eax, 0x400
jmp 0x4054fa
mov esi, ebx
and esi, 0x400
xor eax, eax
cmp dword [ebp + 0x14], 0
je 0x405500
test esi, esi
jne 0x405500
mov esi, eax
mov ax, 8
mov ecx, edi
test ebx, 0x10000
jne 0x405512
movzx eax, ax
or eax, 0x800
mov dword [esp + 0x88], eax
and ebx, 0xf
sete al
test esi, esi
setne ah
mov edi, dword [edx + 0x48]
mov dword [esp + 4], edi
test edi, edi
je 0x40559f
cmp dword [edx + 0x14], 2
jne 0x40559f
mov dword [esp + 0x1c], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x14], 0
je 0x405552
test esi, esi
mov edi, dword [esp + 0x1c]
je 0x40559f
cmp dword [ebp + 0x10], 0
jne 0x40555a
jmp 0x40559f
test esi, esi
mov edi, dword [esp + 0x1c]
je 0x40559f
cmp word [ebp + 0x1c], 0
setne dl
cmp dword [ebp + 0x18], 0
mov dh, ah
sete ah
test ah, dl
mov ah, dh
mov edx, dword [ebp + 8]
jne 0x40559f
cmp ebx, 0xb
jae 0x40559f
mov esi, dword [esp + 4]
mov esi, dword [esi + 0x34]
mov edx, dword [edx + 0x10]
test esi, esi
mov dword [esp], ecx
je 0x4055b0
cmp edx, 0xffffffff
mov ecx, dword [esp + 0x34]
jne 0x4055d2
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x4055a6
mov dword [edx + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ecx, ecx
mov ecx, dword [esp + 0x34]
jne 0x4055c2
xor esi, esi
cmp edx, 0xffff
jne 0x4055d2
mov edx, dword [esp + 4]
mov dword [edx + 0x34], 1
mov esi, 1
or al, ah
movzx edx, al
test edi, edi
je 0x405616
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0x2f
mov eax, dword [ebp + 8]
je 0x4056c8
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x8c], eax
mov esi, ebx
push ecx
call fcn.00408b70
add esp, 4
cmp eax, 0x10000
jb 0x405631
mov eax, dword [ebp + 8]
jmp 0x4056c8
or ecx, dword [esp]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
je 0x4056bf
mov dword [eax + 0x1c], 0x18
jmp 0x4055a6
mov dword [esp + 0x40], esi
mov dword [esp + 0x84], eax
xor edx, edx
mov esi, 0xfffffffe
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
or ecx, eax
mov ecx, 0
je 0x40566d
lea ecx, [esi + eax]
inc ecx
mov ebx, dword [ebx]
and ebx, ecx
mov esi, ebx
not esi
xor ebx, eax
and esi, eax
add esi, esi
sub esi, ebx
and esi, ecx
mov ecx, esi
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 4]
mov edi, dword [eax + 4]
movzx ecx, word [ebp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x98], ecx
mov esi, dword [esp + 0x84]
add ecx, esi
setb bl
add ecx, edi
adc ebx, 0
mov eax, ecx
mov dword [esp + 0x80], ecx
add eax, 0x4a
adc ebx, 0
mov ecx, 0xfffffffe
cmp ecx, eax
sbb edx, ebx
jae 0x4056d4
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x4055a6
cmp byte [ecx], 0x2f
jne 0x405772
mov dword [eax + 0x1c], 0x19
jmp 0x4055a6
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x405737
mov eax, esi
shr eax, 0x1f
mov dword [esp + 0xc], eax
xor ecx, ecx
mov ebx, dword [esp + 0x98]
add ebx, dword [ebp + 0x38]
mov edx, 0
adc edx, 0xffffffff
add ebx, dword [ebp + 0x40]
adc edx, 0
lea eax, [esi + esi]
add ebx, eax
adc edx, dword [esp + 0xc]
add ebx, dword [esp + 0x44]
adc edx, 0
add ebx, edi
adc edx, 0
mov eax, dword [ebp + 8]
add ebx, dword [eax]
adc edx, dword [eax + 4]
add ebx, 0x72
adc edx, 0
cmp edx, 0xffffffff
je 0x405737
mov eax, dword [esp + 4]
mov dword [eax + 0x34], 1
mov ecx, 1
mov dword [esp + 0xc], ecx
xor edx, edx
test esi, esi
mov ebx, dword [esp + 0x34]
je 0x4057ce
mov eax, dword [ebp + 0xc]
cmp byte [esi + eax - 1], 0x2f
mov ecx, dword [ebp + 8]
jne 0x4057d1
cmp dword [ebp + 0x14], 0
jne 0x405766
mov edx, 0x10
or ebx, dword [esp]
je 0x4057d1
mov dword [ecx + 0x1c], 0x18
jmp 0x4055a6
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push 0
call fcn.00402f10
add esp, 0xc
mov dword [esp + 0x8c], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0
mov esi, 0
cmp edi, 4
jb 0x4057aa
mov esi, ebx
mov eax, 1
mov ecx, dword [esp + 8]
jb 0x4057b7
mov eax, ecx
mov dword [esp + 0x34], edi
mov dword [esp + 8], eax
mov ecx, dword [ebp + 0xc]
mov dword [esp], 0
jmp 0x4055fe
mov ecx, dword [ebp + 8]
mov dword [esp + 0x34], edx
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x4057e2
mov ebx, 0x1c
mov eax, dword [esp + 0x80]
add eax, ebx
add eax, 0x2e
mov ebx, dword [esp + 4]
mov edx, dword [ebx + 8]
cmp edx, eax
jae 0x405843
mov esi, 1
test edx, edx
je 0x40581e
mov esi, edx
jmp 0x40581e
mov ecx, esi
and ecx, 2
mov edx, esi
or esi, 2
imul esi, ecx
xor ecx, 2
and edx, 0xfffffffd
imul edx, ecx
add esi, edx
cmp esi, eax
jb 0x405806
push esi
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 0x4059b0
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov ecx, edi
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x18]
inc eax
cmp edx, eax
jae 0x40589a
mov esi, 1
test edx, edx
je 0x405873
mov esi, edx
jmp 0x405873
mov ecx, esi
and ecx, 2
mov edx, esi
or esi, 2
imul esi, ecx
xor ecx, 2
and edx, 0xfffffffd
imul edx, ecx
add esi, edx
cmp esi, eax
jb 0x40585b
push esi
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 0x4059b0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], esi
mov ecx, edi
xor eax, eax
cmp dword [ebp + 0x14], 0
je 0x4058c7
cmp dword [esp + 8], 0
jne 0x4058c7
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 0x405aa8
mov dword [esp], eax
mov ebx, dword [esp + 0x10]
mov edx, ebx
mov esi, dword [esp + 0x44]
push esi
mov edi, dword [esp + 0x18]
push edi
call fcn.00406070
add esp, 8
test eax, eax
je 0x4059bc
cmp dword [esp + 8], 0
sete dl
cmp dword [esp + 0x1c], 0
setne dh
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add eax, esi
adc ecx, 0
add ebx, esi
mov esi, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
adc edi, 0
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
or dh, dl
mov byte [esp + 0x14], dh
movzx edx, dh
shl edx, 3
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 4]
cmp dword [eax + 0x34], 0
je 0x4059d0
xor eax, eax
mov ebx, 0xfffffffe
cmp ebx, dword [esp + 0x28]
mov edx, 0
sbb edx, dword [esp + 0x2c]
jae 0x405ab4
mov edx, 0xfffffffe
xor ebx, ebx
cmp edx, esi
mov eax, 0
sbb eax, ecx
jae 0x4059a3
lea ebx, [esp + 0x20]
lea esi, [esp + 0x38]
lea eax, [esp + 0x28]
jmp 0x405ac5
mov dword [edi + 0x1c], 0x10
jmp 0x4055a6
push dword [esp]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x4055a6
cmp dword [esp + 0x3c], 0
jne 0x405e5e
test edi, edi
jne 0x405e5e
mov dword [esp + 0x60], 0x4034b50
movzx eax, byte [esp + 0x14]
test al, al
je 0x4059f6
mov al, 0x14
mov byte [esp + 0x64], al
mov ebx, dword [esp + 0x88]
movzx edx, bx
mov byte [esp + 0x66], bl
mov byte [esp + 0x67], dh
mov edx, dword [esp + 0x1c]
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 + 0x84]
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 esi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x405c75
mov eax, esi
mov esi, dword [esp + 0x10]
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 0x405c66
add esi, ebx
adc edi, 0
xor ebx, ebx
mov dword [esp + 4], 0
jmp 0x405be8
mov dword [ecx + 0x1c], 0x10
jmp 0x4055a6
cmp ebx, esi
mov edx, 0
sbb edx, ecx
jae 0x405ae6
lea ebx, [esp + 0x20]
xor esi, esi
lea ecx, [esp + 0xa0]
mov dword [esp + 4], ecx
mov edx, eax
push ebx
push esi
call fcn.00406110
add esp, 8
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
jmp 0x405aee
mov dword [esp + 4], 0
mov edx, dword [ebp + 0x38]
mov dword [esp + 0xc], eax
add edx, eax
mov dword [esp + 0x60], 0x4034b50
movzx eax, byte [esp + 0x14]
test al, al
je 0x405b0a
mov al, 0x14
mov byte [esp + 0x64], al
mov byte [esp + 0x65], 0
movzx ebx, word [esp + 0x88]
mov byte [esp + 0x66], bl
mov byte [esp + 0x67], bh
mov ebx, dword [esp + 0x1c]
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 + 0x84]
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 0x405c75
mov ecx, esi
mov esi, ebx
mov ebx, dword [esp + 0x10]
lea eax, [ebx + ebx]
and eax, 0x3c
xor ebx, 0x1e
add ebx, eax
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 0x405c66
add ebx, esi
adc edi, 0
cmp dword [esp + 4], 0
mov esi, ebx
je 0x405bf0
lea eax, [esp + 0xa0]
mov ebx, dword [esp + 0xc]
push ebx
push eax
push edi
push esi
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x405c81
add esi, ebx
adc edi, 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x38]
jmp 0x405c02
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x38]
mov ebx, dword [esp + 0xc]
test edx, edx
je 0x405c21
push edx
push dword [ebp + 0x34]
push edi
push esi
push dword [eax + 0x44]
call dword [eax + 0x3c]
mov ecx, dword [ebp + 0x38]
add esp, 0x14
cmp eax, ecx
jne 0x405c81
add esi, ecx
adc edi, 0
mov eax, dword [esp + 8]
mov dword [esp + 0xc], ebx
test eax, eax
je 0x405c90
mov ebx, dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push edi
push esi
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x405c66
mov ecx, ebx
add esi, ebx
mov dword [esp + 0x10], esi
adc edi, 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0
jmp 0x405d5d
push dword [esp]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x4055a6
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x4055a6
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
cmp dword [ebp + 0x14], 0
je 0x405d5d
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x40]
mov ecx, eax
cmp eax, 0xa
jl 0x405cd9
mov ecx, 0xa
xor eax, eax
mov edx, dword [esp + 0x40]
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x437d28]
test edx, edx
jne 0x405cf8
or eax, 0x80000
lea ecx, [esp + 0x48]
push eax
push ecx
push 0x406180
mov esi, dword [esp + 0xc]
push esi
call fcn.004045d0
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.00403080
add esp, 0x18
cmp eax, 1
jne 0x405e6d
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
push dword [esp]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp], ecx
mov dword [esp + 8], eax
or ecx, eax
je 0x405f79
mov dword [esp + 0x48], 0x8074b50
mov edx, dword [esp + 0x8c]
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 + 0x38]
mov edx, dword [esp + 0x3c]
cmp dword [esp + 4], 0
je 0x405e5a
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]
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 + 0x44], 0x38
mov dword [esp + 0x94], 0x30
mov ecx, 0x28
mov esi, 0x18
mov dword [esp + 0x80], 0x17
mov eax, dword [esp + 8]
mov edx, eax
mov byte [esp + 0x1b], al
mov dword [esp + 0x40], 0x16
mov dword [esp + 0x90], 0x15
mov edi, 0x14
jmp 0x405ed3
test edx, edx
je 0x405e88
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x4055a6
push dword [esp]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x4055a6
mov dword [esp + 0x50], ecx
mov dword [esp + 0x44], 0x18
mov dword [esp + 0x94], 0x10
mov ecx, 8
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x40], 0xe
mov edx, dword [esp]
mov byte [esp + 0x1b], dl
mov dword [esp + 0x90], 0xd
mov edi, 0xc
mov esi, 0x10
mov edx, dword [esp]
mov ebx, dword [esp + 8]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x1b]
mov byte [esp + edi + 0x48], al
test cl, 0x20
jne 0x405eef
mov ebx, edx
mov edx, dword [esp]
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 8]
shrd edx, eax, cl
mov edi, dword [esp + 0x90]
mov byte [esp + edi + 0x48], bl
mov ebx, eax
shr ebx, cl
test cl, 0x20
jne 0x405f16
mov ebx, edx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp]
mov eax, dword [esp + 8]
shrd edx, eax, cl
mov edi, dword [esp + 0x40]
mov byte [esp + edi + 0x48], bl
shr eax, cl
test cl, 0x20
jne 0x405f35
mov eax, edx
mov ecx, dword [esp + 0x80]
mov byte [esp + ecx + 0x48], al
lea eax, [esp + 0x48]
push esi
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x4055a6
mov ecx, dword [esp + 0x10]
mov eax, ecx
and eax, esi
add eax, eax
xor ecx, esi
add ecx, eax
mov dword [esp + 0x10], ecx
adc dword [esp + 0x14], 0
cmp dword [esp + 4], 0
je 0x405fd8
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x20]
mov eax, 0
sbb eax, dword [esp + 0x24]
jb 0x405f9a
xor eax, eax
jmp 0x405f9e
lea eax, [esp + 0x20]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x28]
mov ecx, 0
sbb ecx, dword [esp + 0x2c]
jb 0x405fb9
mov edi, 0
jmp 0x405fbd
lea edi, [esp + 0x38]
jae 0x405fc3
lea edx, [esp + 0x28]
lea ecx, [esp + 0xa0]
push eax
push edi
call fcn.00406110
add esp, 8
mov dword [esp + 0xc], eax
movzx ebx, word [esp + 0x88]
movzx esi, word [esp + 0x1c]
movzx eax, word [esp + 0xc]
movzx edi, word [esp + 0x84]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0
push ebx
push esi
push dword [esp + 0xac]
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0xcc]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x44]
push edi
call fcn.004061d0
add esp, 0x48
test eax, eax
je 0x4055a6
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x4055a8