Function at 0x40f3f0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov ebx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ebx
test eax, eax
mov edi, 6
cmovns edi, eax
mov eax, ebx
mov dword [esp + 0x10], ecx
or eax, ecx
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x20], ebx
mov esi, edi
je 0x40f45b
mov eax, edi
and eax, 0x400
jmp 0x40f46d
and edi, 0x400
xor eax, eax
cmp dword [ebp + 0x14], 0
je 0x40f473
test edi, edi
jne 0x40f473
mov edi, eax
mov ax, 8
movzx ecx, ax
lea ebx, [ecx + 0x800]
test esi, 0x10000
cmove ecx, ebx
mov dword [esp + 0x7c], ecx
mov ecx, esi
xor ecx, 0xfffffff0
or esi, 0xf
and esi, ecx
sete al
mov dword [esp + 0x44], edi
test edi, edi
setne cl
mov ebx, dword [edx + 0x48]
test ebx, ebx
je 0x40f7f6
cmp dword [edx + 0x14], 2
jne 0x40f7f6
cmp dword [ebp + 0x14], 0
setne dl
cmp dword [ebp + 0x10], 0
sete ah
cmp dword [ebp + 0xc], 0
je 0x40f7f6
and ah, dl
jne 0x40f7f6
movzx edi, word [ebp + 0x1c]
test di, di
setne dl
cmp dword [ebp + 0x18], 0
sete ah
test ah, dl
jne 0x40f7f6
cmp esi, 0xb
jae 0x40f7f6
cmp dword [ebx + 0x34], 0
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
je 0x40f516
cmp edx, 0xffffffff
jne 0x40f52c
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x40f800
cmp dword [esp + 0x10], 0
jne 0x40f525
cmp edx, 0xffff
jne 0x40f52c
mov dword [ebx + 0x34], 1
or cl, al
movzx edx, cl
cmp dword [esp + 0x44], 0
je 0x40f565
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x2f
mov eax, dword [ebp + 8]
je 0x40f582
mov dword [esp + 0x1c], edx
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x78], eax
push dword [ebp + 0xc]
call fcn.00417a70
add esp, 4
cmp eax, 0x10000
jb 0x40f58e
mov eax, dword [ebp + 8]
jmp 0x40f582
mov eax, dword [esp + 0x20]
or eax, dword [esp + 0x10]
mov eax, dword [ebp + 8]
jne 0x40f7f9
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0x2f
jne 0x40f80c
mov dword [eax + 0x1c], 0x19
jmp 0x40f800
mov dword [esp + 0x74], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 0
mov esi, 0xfffffffe
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
or edx, ecx
mov edx, 0
je 0x40f5c3
lea edx, [esi + ecx]
inc edx
mov eax, dword [eax]
and eax, edx
sub ecx, eax
and ecx, edx
mov edx, ecx
mov dword [esp + 0x2c], edx
mov esi, dword [ebx + 4]
movzx eax, di
xor ecx, ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xb4], eax
add edx, eax
setb cl
mov eax, edx
mov dword [esp + 0x54], esi
add eax, esi
mov edi, ecx
adc ecx, 0
add eax, 0x4a
adc ecx, 0
mov esi, 0xfffffffe
cmp esi, eax
sbb dword [esp + 0x14], ecx
jae 0x40f60e
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x40f800
mov eax, dword [ebx + 0x34]
test eax, eax
mov esi, dword [esp + 0x2c]
jne 0x40f685
xor ecx, ecx
mov eax, dword [esp + 0x28]
add eax, esi
setb cl
mov esi, ecx
mov ecx, dword [ebp + 8]
add eax, dword [ecx]
adc esi, dword [ecx + 4]
add eax, 0x1e
adc esi, 0
lea ecx, [eax + eax]
and ecx, 0x5c
xor eax, 0x2e
add edx, dword [ebp + 0x38]
adc edi, 0
add edx, dword [esp + 0x54]
adc edi, 0
add edx, eax
adc edi, esi
mov esi, dword [esp + 0x2c]
add edx, ecx
adc edi, 0
mov eax, edx
xor eax, 0x16
add edx, edx
and edx, 0x2c
add eax, dword [ebp + 0x40]
adc edi, 0xffffffff
add eax, edx
adc edi, 0
add eax, 0x10
adc edi, 0
xor eax, eax
cmp edi, 0xffffffff
je 0x40f685
mov dword [ebx + 0x34], 1
mov eax, 1
mov dword [esp + 0xb0], 0
mov edx, dword [esp + 0x28]
test edx, edx
je 0x40f6d8
mov ecx, edx
xor ecx, 0xfffffffe
mov edx, dword [esp + 0x28]
and edx, 0xfffffffe
lea ecx, [ecx + edx*2]
mov edx, dword [ebp + 0xc]
cmp byte [edx + ecx + 1], 0x2f
mov edx, dword [esp + 0x28]
jne 0x40f6d8
cmp dword [ebp + 0x14], 0
jne 0x40f7f6
mov dword [esp + 0xb0], 0x10
mov ecx, dword [esp + 0x20]
or ecx, dword [esp + 0x10]
jne 0x40f7f6
test eax, eax
mov ecx, 0x1c
cmove ecx, eax
mov eax, dword [esp + 0xb4]
add eax, edx
add eax, 0x2e
mov edx, ecx
xor edx, eax
and ecx, eax
add edx, dword [esp + 0x54]
lea eax, [edx + ecx*2]
mov ecx, dword [ebx + 8]
cmp ecx, eax
jae 0x40f753
test ecx, ecx
mov esi, 1
cmovne esi, ecx
cmp esi, eax
jae 0x40f72c
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 0x40f710
push esi
push dword [ebx + 0xc]
push dword [ebx]
mov edi, ebx
mov ebx, dword [ebp + 8]
push dword [ebx + 0x34]
call dword [ebx + 0x30]
add esp, 0x10
test eax, eax
je 0x40f862
mov dword [edi], eax
mov dword [edi + 8], esi
mov ebx, edi
mov esi, dword [esp + 0x2c]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
inc eax
cmp ecx, eax
mov edx, dword [ebp + 0x14]
jae 0x40f7b7
test ecx, ecx
mov esi, 1
cmovne esi, ecx
cmp esi, eax
jae 0x40f78b
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 0x40f76f
push esi
push dword [ebx + 0x1c]
push dword [ebx + 0x10]
mov edi, ebx
mov ebx, dword [ebp + 8]
push dword [ebx + 0x34]
call dword [ebx + 0x30]
add esp, 0x10
test eax, eax
je 0x40f862
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], esi
mov edx, dword [ebp + 0x14]
mov ebx, edi
mov esi, dword [esp + 0x2c]
xor eax, eax
test edx, edx
je 0x40f86b
cmp dword [esp + 0x1c], 0
mov ecx, dword [ebp + 8]
jne 0x40f86e
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
jne 0x40f86e
mov dword [ecx + 0x1c], 0x10
jmp 0x40f800
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push 0
mov dword [esp + 0x28], edx
call fcn.00402f70
add esp, 0xc
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0
cmp ebx, 4
mov dword [esp + 0x10], 0
cmovb esi, eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
cmovb ecx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x14]
jmp 0x40f54e
mov dword [ebx + 0x1c], 0x10
jmp 0x40f800
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov edi, esi
mov esi, ecx
mov ebx, dword [esp + 0xc]
mov edx, ebx
push edi
push dword [esp + 0x1c]
call fcn.00410010
add esp, 8
test eax, eax
je 0x40f948
cmp dword [esp + 0x1c], 0
setne dl
cmp dword [esp + 0x44], 0
sete dh
mov ecx, dword [esp + 0x30]
mov esi, ecx
and esi, edi
mov eax, esi
shr eax, 0x1f
add esi, esi
xor ecx, edi
add ecx, esi
adc eax, dword [esp + 0x34]
add ebx, edi
mov edi, eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x18]
adc ebx, 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movups xmmword [esp + 0x8e], xmm0
and dh, dl
mov byte [esp + 0x20], dh
mov dl, dh
xor dl, 1
movzx edx, dl
shl edx, 3
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x34], 0
je 0x40f95a
mov dword [esp + 0x14], 0
mov esi, 0xfffffffe
cmp esi, dword [esp + 0x38]
mov edx, 0
sbb edx, dword [esp + 0x3c]
mov dword [esp + 0x18], ebx
jae 0x40fa55
xor edx, edx
cmp esi, ecx
mov eax, 0
sbb eax, edi
lea eax, [esp + 0x30]
cmovae eax, edx
lea edx, [esp + 0x38]
lea esi, [esp + 0x48]
jmp 0x40fa68
push dword [esp + 0x10]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
jmp 0x40f800
cmp dword [esp + 0x4c], 0
jne 0x40fe0a
test ebx, ebx
jne 0x40fe0a
mov dword [esp + 0x18], ebx
mov dword [esp + 0x80], 0x4034b50
xor ebx, ebx
cmp byte [esp + 0x20], 0
mov edx, 0x14
cmovne edx, ebx
mov byte [esp + 0x84], dl
mov edx, dword [esp + 0x7c]
movzx eax, dx
mov byte [esp + 0x86], dl
mov byte [esp + 0x87], ah
mov edx, dword [esp + 0x44]
mov byte [esp + 0x88], dl
movups xmmword [esp + 0x89], xmm0
mov byte [esp + 0x99], 0
mov eax, dword [esp + 0x28]
mov byte [esp + 0x9a], al
mov byte [esp + 0x9b], ah
mov edx, dword [ebp + 0x38]
mov byte [esp + 0x9c], dl
mov byte [esp + 0x9d], dh
lea edx, [esp + 0x80]
push 0x1e
push edx
push edi
push ecx
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40fbac
mov eax, dword [esp + 0xc]
add eax, 0x1e
mov ecx, esi
mov esi, dword [esp + 0x18]
adc esi, 0
mov edi, dword [esp + 0x28]
push edi
push dword [ebp + 0xc]
push esi
mov dword [esp + 0x18], eax
push eax
push dword [ecx + 0x44]
call dword [ecx + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x40fb9c
mov eax, edi
mov ecx, dword [esp + 0xc]
add ecx, edi
adc esi, 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
jmp 0x40fbc0
cmp esi, ecx
mov edx, 0
sbb edx, edi
jae 0x40fa89
lea eax, [esp + 0x30]
xor edx, edx
xor esi, esi
lea ebx, [esp + 0xc0]
mov ecx, ebx
push eax
push esi
call fcn.004100b0
add esp, 8
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x14], ebx
jmp 0x40fa8b
xor eax, eax
mov dword [esp + 0x80], 0x4034b50
xor ebx, ebx
cmp byte [esp + 0x20], 0
mov edx, 0x14
cmovne edx, ebx
mov byte [esp + 0x84], dl
mov byte [esp + 0x85], 0
movzx edx, word [esp + 0x7c]
mov byte [esp + 0x86], dl
mov byte [esp + 0x87], dh
mov edx, dword [ebp + 0x38]
mov dword [esp + 0x20], eax
lea esi, [eax + edx]
mov edx, dword [esp + 0x44]
mov byte [esp + 0x88], dl
xorps xmm0, xmm0
movups xmmword [esp + 0x89], xmm0
mov byte [esp + 0x99], 0
mov eax, dword [esp + 0x28]
mov byte [esp + 0x9a], al
mov byte [esp + 0x9b], ah
mov eax, esi
mov byte [esp + 0x9c], al
mov byte [esp + 0x9d], ah
lea edx, [esp + 0x80]
push 0x1e
push edx
push edi
push ecx
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40fbac
mov ecx, dword [esp + 0xc]
add ecx, 0x1e
mov eax, esi
mov esi, dword [esp + 0x18]
adc esi, 0
mov edi, dword [esp + 0x28]
push edi
push dword [ebp + 0xc]
push esi
mov dword [esp + 0x18], ecx
push ecx
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x40fb9c
mov eax, edi
mov ecx, dword [esp + 0xc]
add ecx, edi
adc esi, 0
cmp dword [esp + 0x14], 0
je 0x40fbb8
lea eax, [esp + 0xc0]
mov ebx, dword [esp + 0x20]
push ebx
push eax
push esi
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
mov edi, ecx
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x40fc2e
add edi, ebx
adc esi, 0
mov eax, dword [ebp + 8]
mov ecx, edi
jmp 0x40fbc3
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 0x40f802
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x38]
test edx, edx
je 0x40fbe9
push edx
push dword [ebp + 0x34]
push esi
push ecx
push dword [eax + 0x44]
mov ebx, ecx
call dword [eax + 0x3c]
mov ecx, dword [ebp + 0x38]
add esp, 0x14
cmp eax, ecx
jne 0x40fc2e
add ebx, ecx
adc esi, 0
mov ecx, ebx
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebx, dword [ebp + 0x14]
je 0x40fc3d
push ebx
push dword [ebp + 0x10]
push esi
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
mov edi, ecx
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x40fdea
add edi, ebx
mov dword [esp + 0xc], edi
adc esi, 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0
jmp 0x40fcea
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x40f800
mov edi, dword [esp + 0x74]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], esi
test ebx, ebx
je 0x40fcea
mov eax, dword [ebp + 8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
push 0
push 0xfffffffffffffff1
push edi
call fcn.0040e680
add esp, 0xc
lea ecx, [esp + 0x58]
push eax
push ecx
push 0x410110
mov esi, dword [esp + 0x1c]
push esi
call fcn.0040e4d0
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xbc], eax
lea eax, [esp + 0xbc]
push 4
push 0
push 0
push eax
push dword [ebp + 0x10]
push esi
call fcn.00403d80
add esp, 0x18
cmp eax, 1
jne 0x40fe19
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], eax
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edi, eax
mov dword [esp + 0x10], ecx
or eax, ecx
je 0x40ff27
mov dword [esp + 0x58], 0x8074b50
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x5c], cl
mov byte [esp + 0x5d], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x5e], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x5f], al
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x14], 0
je 0x40fe06
mov byte [esp + 0x60], cl
mov byte [esp + 0x61], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x62], al
mov eax, edx
shr eax, 0x10
shr ecx, 0x18
mov byte [esp + 0x63], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x64], dl
mov byte [esp + 0x65], dh
mov byte [esp + 0x66], al
mov byte [esp + 0x67], cl
mov ecx, edi
mov byte [esp + 0x68], cl
mov byte [esp + 0x69], ch
mov eax, edi
shr eax, 0x10
mov byte [esp + 0x6a], al
mov eax, edi
shr eax, 0x18
mov byte [esp + 0x6b], al
mov dword [esp + 0x2c], 0x38
mov dword [esp + 0x74], 0x30
mov ecx, 0x28
mov dword [esp + 0x1c], 0x18
mov dword [esp + 0x54], 0x17
mov eax, dword [esp + 0x10]
mov byte [esp + 0x27], al
mov dword [esp + 0xac], 0x16
mov dword [esp + 0xa8], 0x15
mov dword [esp + 0xa4], 0x14
jmp 0x40fe85
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 0x40f800
test edx, edx
je 0x40fe35
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x40f800
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 0x40f800
mov dword [esp + 0x60], ecx
mov dword [esp + 0x2c], 0x18
mov dword [esp + 0x74], 0x10
mov ecx, 8
mov dword [esp + 0x54], 0xf
mov dword [esp + 0xac], 0xe
mov eax, edi
mov byte [esp + 0x27], al
mov dword [esp + 0xa8], 0xd
mov dword [esp + 0xa4], 0xc
mov dword [esp + 0x1c], 0x10
mov ebx, edi
mov edx, dword [esp + 0x10]
shrd ebx, edx, cl
mov eax, edx
shr eax, cl
test cl, 0x20
cmove eax, ebx
mov esi, edi
mov ecx, dword [esp + 0x74]
shrd esi, edx, cl
mov dword [esp + 0xb8], esi
movzx ebx, byte [esp + 0x27]
mov esi, dword [esp + 0xa4]
mov byte [esp + esi + 0x58], bl
mov ebx, dword [esp + 0xa8]
mov byte [esp + ebx + 0x58], al
mov eax, edx
shr eax, cl
test cl, 0x20
cmove eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xac]
mov byte [esp + ecx + 0x58], al
mov ecx, dword [esp + 0x2c]
shrd edi, edx, cl
shr edx, cl
test cl, 0x20
cmove edx, edi
mov eax, dword [esp + 0x54]
mov byte [esp + eax + 0x58], dl
lea eax, [esp + 0x58]
mov esi, dword [esp + 0x1c]
push esi
push eax
push dword [esp + 0x20]
push dword [esp + 0x18]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x40f800
mov eax, dword [esp + 0x1c]
add dword [esp + 0xc], eax
adc dword [esp + 0x18], 0
cmp dword [esp + 0x14], 0
je 0x40ff79
xor ecx, ecx
mov edx, 0xfffffffe
cmp edx, dword [esp + 0x30]
mov eax, 0
sbb eax, dword [esp + 0x34]
lea eax, [esp + 0x30]
cmovae eax, ecx
cmp edx, dword [esp + 0x38]
mov edx, 0
sbb edx, dword [esp + 0x3c]
lea esi, [esp + 0x48]
cmovae esi, ecx
lea edx, [esp + 0x38]
cmovae edx, ecx
lea ecx, [esp + 0xc0]
push eax
push esi
call fcn.004100b0
add esp, 8
mov dword [esp + 0x20], eax
movzx ebx, word [esp + 0x7c]
movzx esi, word [esp + 0x44]
movzx eax, word [esp + 0x20]
movzx edi, word [esp + 0x28]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0xb8]
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0
push 0
push ebx
push esi
push dword [esp + 0x9c]
push dword [esp + 0x74]
push dword [esp + 0x74]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0xec]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x58]
push edi
call fcn.00410170
add esp, 0x4c
test eax, eax
je 0x40f800
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov ebx, 1
jmp 0x40f802