Function at 0x40ec10
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, 0xd0
mov esi, dword [ebp + 0x24]
mov edi, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], esi
test eax, eax
mov ebx, 6
cmovns ebx, eax
mov eax, esi
or eax, edi
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
jne 0x40ec7a
xor eax, eax
cmp dword [ebp + 0x14], 0
je 0x40ec7e
mov ecx, ebx
and ecx, 0x400
jne 0x40ec7e
mov ax, 8
movzx ecx, ax
lea eax, [ecx + 0x800]
test ebx, 0x10000
cmove ecx, eax
mov dword [esp + 0x7c], ecx
mov eax, ebx
and eax, 0xf
mov dword [esp + 0x2c], eax
sete al
mov ecx, dword [edx + 0x48]
mov dword [esp + 4], ecx
test ecx, ecx
je 0x40ed04
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 2
jne 0x40ed04
cmp dword [ebp + 0x14], 0
setne cl
cmp dword [ebp + 0x10], 0
sete dl
cmp dword [ebp + 0xc], 0
je 0x40ed04
and dl, cl
jne 0x40ed04
cmp word [ebp + 0x1c], 0
setne cl
cmp dword [ebp + 0x18], 0
sete dl
test dl, cl
jne 0x40ed04
cmp dword [esp + 0x2c], 0xb
jae 0x40ed04
mov ecx, dword [esp + 4]
cmp dword [ecx + 0x34], 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
je 0x40ed1a
cmp ecx, 0xffffffff
jne 0x40ed31
mov dword [edx + 0x1c], 2
jmp 0x40ed0e
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
test edi, edi
jne 0x40ed26
cmp ecx, 0xffff
jne 0x40ed31
mov ecx, dword [esp + 4]
mov dword [ecx + 0x34], 1
mov ecx, esi
or ecx, edi
je 0x40ed57
mov ecx, ebx
xor ecx, 0xfffffbff
mov edx, ebx
or edx, 0x400
and edx, ecx
mov edx, dword [ebp + 8]
jne 0x40ed57
mov dword [edx + 0x1c], 0x18
jmp 0x40ed0e
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0x2f
jne 0x40ed68
mov dword [edx + 0x1c], 0x19
jmp 0x40ed0e
mov ecx, ebx
shr ecx, 0xa
and ecx, 1
or al, cl
movzx eax, al
test ebx, 0x400
jne 0x40edc3
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push 0
mov esi, eax
call fcn.00402fd0
add esp, 0xc
mov dword [esp + 0x74], eax
xor edi, edi
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 0
cmp ecx, 4
mov eax, dword [esp + 0x2c]
cmovb eax, edi
mov dword [esp + 0x2c], eax
mov eax, 1
cmovb esi, eax
mov dword [esp + 0x20], esi
mov esi, ecx
jmp 0x40edce
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x74], eax
push dword [ebp + 0xc]
call fcn.004176a0
add esp, 4
cmp eax, 0x10000
jb 0x40edef
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x40ed0e
mov dword [esp + 0x24], eax
movzx eax, word [ebp + 0x1c]
mov dword [esp + 0x78], eax
mov dword [esp + 8], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
or ecx, eax
mov ecx, 0
je 0x40ee27
mov ecx, 0xfffffffe
add ecx, eax
inc ecx
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 eax, dword [eax + 4]
xor ecx, ecx
mov edx, dword [esp + 0x24]
add edx, dword [esp + 0x78]
setb cl
mov dword [esp + 0x1c], eax
add edx, eax
adc ecx, 0
mov eax, edx
mov dword [esp + 0x4c], edx
add eax, 0x4a
adc ecx, 0
mov edx, 0xfffffffe
cmp edx, eax
sbb dword [esp + 8], ecx
jae 0x40ee70
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x40ed0e
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], eax
test eax, eax
mov edx, dword [ebp + 8]
jne 0x40ef20
mov eax, dword [esp + 0x24]
mov edx, eax
shr edx, 0x1f
lea ecx, [eax + eax]
add ecx, dword [esp + 0x78]
adc edx, 0
add ecx, dword [esp + 0x14]
adc edx, 0
mov eax, dword [ebp + 8]
add ecx, dword [eax]
adc edx, dword [eax + 4]
add ecx, 0x4c
adc edx, 0
mov dword [esp + 0x6c], edx
mov dword [esp + 0x28], ecx
mov eax, dword [ebp + 0x38]
xor dword [esp + 0x28], eax
and ecx, eax
mov eax, ecx
shr eax, 0x1f
mov dword [esp + 0x70], eax
add ecx, ecx
mov dword [esp + 8], 0
mov eax, dword [esp + 0x1c]
add eax, dword [ebp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, 0
adc eax, 0xffffffff
mov edx, dword [esp + 0x1c]
add edx, dword [esp + 0x28]
mov dword [esp + 0x1c], edx
adc eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x1c]
add edx, ecx
adc eax, dword [esp + 0x70]
add edx, 0x26
mov edx, dword [ebp + 8]
adc eax, 0
cmp eax, 0xffffffff
je 0x40ef20
mov eax, dword [esp + 4]
mov dword [eax + 0x34], 1
mov dword [esp + 8], 1
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x40ef5f
mov eax, ecx
xor eax, 0xfffffffe
and ecx, 0xfffffffe
lea eax, [eax + ecx*2]
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + eax + 1], 0x2f
jne 0x40ef5f
cmp dword [ebp + 0x14], 0
jne 0x40ed4e
mov dword [esp + 0x1c], 0x10
or esi, edi
jne 0x40ed4e
mov ecx, dword [esp + 8]
test ecx, ecx
mov eax, 0x1c
cmove eax, ecx
mov ecx, dword [esp + 0x4c]
add eax, ecx
add eax, 0x2e
mov edi, dword [esp + 4]
mov edx, dword [edi + 8]
cmp edx, eax
jae 0x40efd4
test edx, edx
mov ecx, 1
cmovne ecx, edx
cmp ecx, eax
jae 0x40efaf
mov esi, ecx
mov edx, ecx
or edx, 2
and esi, 2
imul edx, esi
and ecx, 0xfffffffd
xor esi, 2
imul esi, ecx
add esi, edx
mov ecx, esi
cmp esi, eax
jb 0x40ef91
jmp 0x40efb1
mov esi, ecx
push esi
push dword [edi + 0xc]
push dword [edi]
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x40f136
mov edi, dword [esp + 4]
mov dword [edi], eax
mov dword [edi + 8], esi
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
inc eax
cmp edx, eax
jae 0x40f034
test edx, edx
mov ecx, 1
cmovne ecx, edx
cmp ecx, eax
jae 0x40f00d
mov esi, ecx
mov edx, ecx
or edx, 2
and esi, 2
imul edx, esi
and ecx, 0xfffffffd
xor esi, 2
imul esi, ecx
add esi, edx
mov ecx, esi
cmp esi, eax
jb 0x40efef
jmp 0x40f00f
mov esi, ecx
push esi
push dword [edi + 0x1c]
push dword [edi + 0x10]
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x40f136
mov ecx, dword [esp + 4]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], esi
xor eax, eax
cmp dword [ebp + 0x14], 0
mov ecx, dword [ebp + 8]
je 0x40f064
cmp dword [esp + 0x20], 0
jne 0x40f064
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 0x40f257
mov dword [esp + 8], eax
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
push edi
mov esi, dword [esp + 0x14]
push esi
call fcn.0040f820
add esp, 8
test eax, eax
je 0x40f142
cmp dword [esp + 0x20], 0
setne dl
test ebx, 0x400
sete dh
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
add ebx, edi
adc eax, 0
mov ecx, dword [esp + 0xc]
add ecx, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], eax
adc esi, 0
mov dword [esp + 0x10], esi
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movups xmmword [esp + 0x8e], xmm0
and dh, dl
mov dl, dh
xor dl, 1
movzx eax, dl
shl eax, 3
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 4]
cmp dword [eax + 0x34], 0
mov edi, ecx
je 0x40f157
mov byte [esp + 0x28], dh
mov dword [esp + 4], 0
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x38]
mov edx, 0
sbb edx, dword [esp + 0x3c]
mov dword [esp + 0xc], edi
jae 0x40f263
xor edx, edx
cmp eax, ebx
mov eax, 0
sbb eax, dword [esp + 0x14]
lea eax, [esp + 0x30]
cmovae eax, edx
lea edx, [esp + 0x38]
lea esi, [esp + 0x40]
jmp 0x40f27a
mov dword [edi + 0x1c], 0x10
jmp 0x40ed0e
push dword [esp + 8]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x40ed0e
cmp dword [esp + 0x44], 0
jne 0x40f62c
cmp dword [esp + 0x10], 0
jne 0x40f62c
mov dword [esp + 0xc], edi
mov dword [esp + 0x80], 0x4034b50
mov esi, ebx
xor ebx, ebx
test dh, dh
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 eax, dword [esp + 0x4c]
mov byte [esp + 0x88], al
movups xmmword [esp + 0x89], xmm0
mov byte [esp + 0x99], 0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x9a], al
mov edi, eax
mov byte [esp + 0x9b], ah
mov eax, dword [ebp + 0x38]
mov byte [esp + 0x9c], al
mov byte [esp + 0x9d], ah
lea edx, [esp + 0x80]
push 0x1e
push edx
push dword [esp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40f3aa
mov eax, dword [esp + 0xc]
add eax, 0x1e
mov ecx, dword [esp + 0x10]
adc ecx, 0
push edi
push dword [ebp + 0xc]
push ecx
push eax
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x40f450
add edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
adc esi, 0
add edi, 0x1e
adc esi, 0
mov dword [esp + 4], 0
mov dword [esp + 0x14], 0
mov ebx, edi
jmp 0x40f3ca
mov dword [ecx + 0x1c], 0x10
jmp 0x40ed0e
cmp eax, ebx
mov edx, 0
mov ecx, dword [esp + 0x14]
sbb edx, ecx
jae 0x40f29d
lea eax, [esp + 0x30]
xor edx, edx
xor esi, esi
lea ebx, [esp + 0xb0]
mov ecx, ebx
push eax
push esi
call fcn.0040f8c0
add esp, 8
mov edi, eax
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ebx
jmp 0x40f2a1
xor edi, edi
mov esi, ebx
mov dword [esp + 0x80], 0x4034b50
xor ebx, ebx
cmp byte [esp + 0x28], 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 eax, dword [ebp + 0x38]
mov dword [esp + 0x14], edi
lea edx, [edi + eax]
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x88], al
xorps xmm0, xmm0
movups xmmword [esp + 0x89], xmm0
mov byte [esp + 0x99], 0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x9a], al
mov byte [esp + 0x9b], ah
mov byte [esp + 0x9c], dl
mov byte [esp + 0x9d], dh
lea edx, [esp + 0x80]
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 0x40f3aa
mov edi, dword [esp + 0xc]
lea eax, [edi + edi]
and eax, 0x3c
xor edi, 0x1e
add edi, eax
mov eax, esi
mov esi, dword [esp + 0x10]
adc esi, 0
push dword [esp + 0x24]
push dword [ebp + 0xc]
push esi
push edi
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jne 0x40f3b6
mov eax, ecx
add edi, ecx
adc esi, 0
cmp dword [esp + 4], 0
mov ebx, edi
je 0x40f3c2
lea eax, [esp + 0xb0]
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 0x40f3f2
add ebx, edi
adc esi, 0
jmp 0x40f3ca
mov dword [esi + 0x1c], 0x13
jmp 0x40ed10
push dword [esp + 8]
mov esi, dword [ebp + 8]
jmp 0x40f454
mov dword [esp + 4], 0
mov edi, dword [ebp + 0x38]
test edi, edi
je 0x40f401
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 0x40f3f2
add ebx, edi
mov dword [esp + 0xc], ebx
adc esi, 0
jmp 0x40f405
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x40ed0e
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
cmp dword [esp + 0x20], 0
je 0x40f469
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 0x18]
push dword [esp + 0x18]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x40f60c
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
add dword [esp + 0xc], eax
adc dword [esp + 0x10], 0
jmp 0x40f50f
push dword [esp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x40ed10
cmp dword [ebp + 0x14], 0
je 0x40f50f
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xc]
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
push 0
push 0xfffffffffffffff1
push dword [esp + 0x34]
call fcn.0040ddf0
add esp, 0xc
lea ecx, [esp + 0x50]
push eax
push ecx
push 0x110f920
mov esi, dword [esp + 0x14]
push esi
call fcn.0040dc40
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xac], eax
lea eax, [esp + 0xac]
push 4
push 0
push 0
push eax
push dword [ebp + 0x10]
push esi
call fcn.00403d30
add esp, 0x18
cmp eax, 1
jne 0x40f63b
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], 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 eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edi, eax
mov dword [esp + 0x2c], ecx
or eax, ecx
je 0x40f743
mov dword [esp + 0x50], 0x8074b50
mov ecx, dword [esp + 0x74]
mov byte [esp + 0x54], cl
mov byte [esp + 0x55], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x56], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x57], al
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
cmp dword [esp + 4], 0
je 0x40f628
mov byte [esp + 0x58], cl
mov byte [esp + 0x59], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x5a], al
mov eax, edx
shr eax, 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], al
mov byte [esp + 0x5f], cl
mov ecx, edi
mov byte [esp + 0x60], cl
mov byte [esp + 0x61], ch
mov eax, edi
shr eax, 0x10
mov byte [esp + 0x62], al
mov eax, edi
shr eax, 0x18
mov byte [esp + 0x63], al
mov dword [esp + 8], 0x38
mov dword [esp + 0x70], 0x30
mov ecx, 0x28
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x28], 0x17
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x1b], al
mov dword [esp + 0x6c], 0x16
mov dword [esp + 0xa4], 0x15
mov dword [esp + 0xa0], 0x14
jmp 0x40f6a4
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 0x40ed0e
test edx, edx
je 0x40f657
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x40ed0e
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 0x40ed0e
mov dword [esp + 0x58], ecx
mov dword [esp + 8], 0x18
mov dword [esp + 0x70], 0x10
mov ecx, 8
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x6c], 0xe
mov eax, edi
mov byte [esp + 0x1b], al
mov dword [esp + 0xa4], 0xd
mov dword [esp + 0xa0], 0xc
mov dword [esp + 0x20], 0x10
mov ebx, edi
mov edx, dword [esp + 0x2c]
shrd ebx, edx, cl
mov eax, edx
shr eax, cl
test cl, 0x20
cmove eax, ebx
mov esi, edi
mov ecx, dword [esp + 0x70]
shrd esi, edx, cl
mov dword [esp + 0xa8], esi
movzx ebx, byte [esp + 0x1b]
mov esi, dword [esp + 0xa0]
mov byte [esp + esi + 0x50], bl
mov ebx, dword [esp + 0xa4]
mov byte [esp + ebx + 0x50], al
mov eax, edx
shr eax, cl
test cl, 0x20
cmove eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x6c]
mov byte [esp + ecx + 0x50], al
mov ecx, dword [esp + 8]
shrd edi, edx, cl
shr edx, cl
test cl, 0x20
cmove edx, edi
mov eax, dword [esp + 0x28]
mov byte [esp + eax + 0x50], dl
lea eax, [esp + 0x50]
mov esi, dword [esp + 0x20]
push esi
push eax
push dword [esp + 0x18]
push dword [esp + 0x18]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x40ed0e
mov eax, dword [esp + 0x20]
add dword [esp + 0xc], eax
adc dword [esp + 0x10], 0
cmp dword [esp + 4], 0
je 0x40f795
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 + 0x40]
cmovae esi, ecx
lea edx, [esp + 0x38]
cmovae edx, ecx
lea ecx, [esp + 0xb0]
push eax
push esi
call fcn.0040f8c0
add esp, 8
mov dword [esp + 0x14], eax
movzx ebx, word [esp + 0x7c]
movzx esi, word [esp + 0x4c]
movzx eax, word [esp + 0x14]
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 + 0x24]
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0
push 0
push ebx
push esi
push dword [esp + 0x98]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0xb0]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x48]
push edi
call fcn.0040f990
add esp, 0x4c
test eax, eax
je 0x40ed0e
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov ebx, 1
jmp 0x40ed10