Function at 0x40e690
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 ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], esi
test eax, eax
mov edi, 6
cmovns edi, eax
mov eax, esi
mov dword [esp + 0xc], ecx
or eax, ecx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 4], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x10], ecx
mov ebx, edi
je 0x40e6f7
mov eax, edi
and eax, 0x400
jmp 0x40e709
and edi, 0x400
xor eax, eax
cmp dword [ebp + 0x14], 0
je 0x40e70f
test edi, edi
jne 0x40e70f
mov edi, eax
mov ax, 8
movzx ecx, ax
lea eax, [ecx + 0x800]
test ebx, 0x10000
cmove ecx, eax
mov dword [esp + 0x6c], ecx
and ebx, 0xf
sete al
mov dword [esp + 0x1c], edi
test edi, edi
setne cl
mov edi, dword [edx + 0x48]
test edi, edi
je 0x40e792
cmp dword [edx + 0x14], 2
jne 0x40e792
cmp dword [ebp + 0x14], 0
sete dl
cmp dword [ebp + 0x10], 0
setne ah
cmp dword [ebp + 0xc], 0
je 0x40e792
or ah, dl
je 0x40e792
cmp word [ebp + 0x1c], 0
setne dl
cmp dword [ebp + 0x18], 0
sete ah
test ah, dl
jne 0x40e792
cmp ebx, 0xb
jae 0x40e792
mov dword [esp + 8], edi
cmp dword [edi + 0x34], 0
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
je 0x40e7a8
cmp edx, 0xffffffff
jne 0x40e7c2
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x40e79c
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
cmp dword [esp + 0xc], 0
jne 0x40e7b7
cmp edx, 0xffff
jne 0x40e7c2
mov edx, dword [esp + 8]
mov dword [edx + 0x34], 1
or al, cl
movzx edx, al
cmp dword [esp + 0x1c], 0
je 0x40e7fb
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x2f
mov eax, dword [ebp + 8]
je 0x40e810
mov dword [esp + 0x20], edx
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x68], eax
push dword [ebp + 0xc]
call fcn.00417020
add esp, 4
cmp eax, 0x10000
jb 0x40e819
mov eax, dword [ebp + 8]
jmp 0x40e810
or esi, dword [esp + 0xc]
mov eax, dword [ebp + 8]
jne 0x40e795
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0x2f
jne 0x40eb53
mov dword [eax + 0x1c], 0x19
jmp 0x40e79c
mov dword [esp + 0x60], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], 0
mov edi, 0xfffffffe
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
or edx, ecx
mov eax, 0
je 0x40e859
mov edx, ecx
xor edx, edi
mov eax, ecx
and eax, 0xfffffffe
lea eax, [edx + eax*2]
inc eax
and eax, dword [ebx]
lea edx, [edi + ecx]
inc edx
sub ecx, eax
and ecx, edx
mov eax, ecx
mov dword [esp + 0x38], eax
mov edi, dword [esp + 8]
mov ebx, dword [edi + 4]
movzx edx, word [ebp + 0x1c]
xor eax, eax
mov dword [esp + 0xa4], edx
add edx, dword [esp + 0x14]
setb al
mov dword [esp + 0x64], ebx
add edx, ebx
adc eax, 0
mov ecx, edx
mov dword [esp + 0x24], edx
add ecx, 0x4a
adc eax, 0
mov edx, 0xfffffffe
cmp edx, ecx
sbb dword [esp + 0x3c], eax
jae 0x40e8a9
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x40e79c
mov edi, dword [edi + 0x34]
test edi, edi
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x14]
jne 0x40e949
mov ebx, dword [ecx + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, dword [esp + 0x38]
adc ebx, 0
add ecx, 0x1e
adc ebx, 0
mov edx, ecx
and edx, dword [esp + 0x14]
mov eax, edx
shr eax, 0x1f
add edx, edx
xor ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x14]
adc ebx, 0
add ecx, edx
adc ebx, eax
add ecx, 0x2e
adc ebx, 0
mov edx, ecx
mov eax, dword [esp + 0xa4]
and edx, eax
add edx, edx
mov dword [esp + 0x3c], edx
xor ecx, eax
xor edi, edi
mov edx, dword [ebp + 0x38]
add edx, dword [ebp + 0x40]
mov eax, 0
adc eax, 0xffffffff
add edx, dword [esp + 0x64]
adc eax, 0
add edx, ecx
mov ecx, dword [ebp + 8]
adc eax, ebx
add edx, dword [esp + 0x3c]
adc eax, 0
add edx, 0x26
mov edx, dword [esp + 0x14]
adc eax, 0
cmp eax, 0xffffffff
je 0x40e949
mov eax, dword [esp + 8]
mov dword [eax + 0x34], 1
mov edi, 1
mov dword [esp + 0x3c], 0
test edx, edx
je 0x40e97b
mov eax, dword [ebp + 0xc]
cmp byte [edx + eax - 1], 0x2f
jne 0x40e97b
cmp dword [ebp + 0x14], 0
jne 0x40ebb7
mov dword [esp + 0x3c], 0x10
or esi, dword [esp + 0xc]
jne 0x40ebb7
test edi, edi
mov eax, 0x1c
cmove eax, edi
mov edx, dword [esp + 0x24]
add eax, edx
add eax, 0x2e
mov edi, dword [esp + 8]
mov edx, dword [edi + 8]
cmp edx, eax
jae 0x40e9e8
test edx, edx
mov esi, 1
cmovne esi, edx
cmp esi, eax
jae 0x40e9c3
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 0x40e9a7
push esi
mov edi, dword [esp + 0xc]
push dword [edi + 0xc]
push dword [edi]
mov ebx, dword [ebp + 8]
push dword [ebx + 0x34]
call dword [ebx + 0x30]
add esp, 0x10
test eax, eax
je 0x40eb99
mov dword [edi], eax
mov dword [edi + 8], esi
mov ecx, ebx
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
inc eax
cmp edx, eax
mov ebx, dword [esp + 4]
jae 0x40ea4c
test edx, edx
mov esi, 1
cmovne esi, edx
cmp esi, eax
jae 0x40ea21
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 0x40ea05
push esi
mov edi, dword [esp + 0xc]
push dword [edi + 0x1c]
push dword [edi + 0x10]
mov ebx, dword [ebp + 8]
push dword [ebx + 0x34]
call dword [ebx + 0x30]
add esp, 0x10
test eax, eax
je 0x40eb99
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], esi
mov ecx, ebx
mov ebx, dword [esp + 4]
xor eax, eax
cmp dword [ebp + 0x14], 0
je 0x40ea79
cmp dword [esp + 0x20], 0
jne 0x40ea79
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 0x40eca6
mov dword [esp + 0xc], eax
mov esi, ecx
mov edx, ebx
mov edi, dword [esp + 0x38]
push edi
push dword [esp + 0x14]
call fcn.0040f260
add esp, 8
test eax, eax
je 0x40eba5
cmp dword [esp + 0x20], 0
setne dh
cmp dword [esp + 0x1c], 0
sete dl
mov eax, dword [esp + 0x28]
add eax, edi
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x2c]
adc ecx, 0
mov esi, ebx
and esi, edi
xor ebx, edi
mov eax, esi
shr eax, 0x1f
add esi, esi
add ebx, esi
mov esi, dword [esp + 0x1c]
mov edi, ecx
adc eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
movups xmmword [esp + 0x7e], xmm0
and dl, dh
mov byte [esp + 0x24], dl
xor dl, 1
movzx ecx, dl
shl ecx, 3
mov edx, dword [esp + 8]
cmp dword [edx + 0x34], 0
je 0x40ebc3
mov eax, esi
mov dword [esp + 8], 0
mov esi, 0xfffffffe
cmp esi, dword [esp + 0x30]
mov edx, 0
sbb edx, dword [esp + 0x34]
mov dword [esp + 4], ebx
mov dword [esp + 0x38], ecx
jae 0x40ecb2
xor edx, edx
cmp esi, eax
mov eax, 0
sbb eax, edi
lea eax, [esp + 0x28]
cmovae eax, edx
lea edx, [esp + 0x30]
lea esi, [esp + 0x40]
jmp 0x40ecc5
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push 0
mov esi, edx
call fcn.004033b0
add esp, 0xc
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0
cmp edi, 4
mov dword [esp + 0xc], 0
cmovb ebx, eax
mov eax, 1
cmovb esi, eax
mov dword [esp + 0x20], esi
mov esi, edi
jmp 0x40e7e4
mov dword [ebx + 0x1c], 0x10
jmp 0x40e79c
push dword [esp + 0xc]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
jmp 0x40e79c
mov dword [ecx + 0x1c], 0x18
jmp 0x40e79c
cmp dword [esp + 0x44], 0
jne 0x40f051
cmp dword [esp + 0x10], 0
jne 0x40f051
mov dword [esp + 4], ebx
mov dword [esp + 0x70], 0x4034b50
xor ebx, ebx
cmp byte [esp + 0x24], 0
mov edx, 0x14
cmovne edx, ebx
mov byte [esp + 0x74], dl
mov edx, dword [esp + 0x6c]
movzx eax, dx
mov byte [esp + 0x76], dl
mov byte [esp + 0x77], ah
mov dword [esp + 0x38], ecx
mov byte [esp + 0x78], cl
movups xmmword [esp + 0x79], xmm0
mov byte [esp + 0x89], 0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x8a], al
mov byte [esp + 0x8b], ah
mov eax, dword [ebp + 0x38]
mov byte [esp + 0x8c], al
mov byte [esp + 0x8d], ah
lea edx, [esp + 0x70]
push 0x1e
push edx
push edi
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40edee
mov eax, dword [esp + 4]
add eax, 0x1e
mov ecx, esi
mov esi, dword [esp + 0x10]
adc esi, 0
mov edi, dword [esp + 0x14]
push edi
push dword [ebp + 0xc]
push esi
mov dword [esp + 0x10], eax
push eax
push dword [ecx + 0x44]
call dword [ecx + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x40edde
mov eax, edi
mov ebx, dword [esp + 4]
add ebx, edi
adc esi, 0
mov dword [esp + 8], 0
xor edi, edi
jmp 0x40edd6
mov dword [ecx + 0x1c], 0x10
jmp 0x40e79c
cmp esi, eax
mov edx, 0
sbb edx, edi
jae 0x40ecea
lea eax, [esp + 0x28]
xor edx, edx
xor esi, esi
lea ebx, [esp + 0xb0]
mov ecx, ebx
push eax
push esi
call fcn.0040f300
add esp, 8
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x38]
jmp 0x40ecee
mov esi, eax
xor eax, eax
mov dword [esp + 0x70], 0x4034b50
xor ebx, ebx
cmp byte [esp + 0x24], 0
mov edx, 0x14
cmovne edx, ebx
mov byte [esp + 0x74], dl
mov byte [esp + 0x75], 0
movzx edx, word [esp + 0x6c]
mov byte [esp + 0x76], dl
mov byte [esp + 0x77], dh
mov edx, dword [ebp + 0x38]
mov dword [esp + 0x1c], eax
lea edx, [eax + edx]
mov byte [esp + 0x78], cl
xorps xmm0, xmm0
movups xmmword [esp + 0x79], xmm0
mov byte [esp + 0x89], 0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x8a], al
mov byte [esp + 0x8b], ah
mov byte [esp + 0x8c], dl
mov byte [esp + 0x8d], dh
lea edx, [esp + 0x70]
push 0x1e
push edx
push edi
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40edee
mov ecx, dword [esp + 4]
add ecx, 0x1e
mov eax, esi
mov esi, dword [esp + 0x10]
adc esi, 0
mov edi, dword [esp + 0x14]
push edi
push dword [ebp + 0xc]
push esi
mov dword [esp + 0x10], ecx
push ecx
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x40edde
mov ebx, dword [esp + 4]
add ebx, edi
adc esi, 0
cmp dword [esp + 8], 0
je 0x40edfa
lea eax, [esp + 0xb0]
mov edi, dword [esp + 0x1c]
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 0x40ee75
add ebx, edi
adc esi, 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x38]
jmp 0x40ee0c
push dword [esp + 0xc]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x40e79e
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x38]
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x40ee2b
push ecx
push dword [ebp + 0x34]
push esi
push ebx
push dword [eax + 0x44]
call dword [eax + 0x3c]
mov ecx, dword [ebp + 0x38]
add esp, 0x14
cmp eax, ecx
jne 0x40ee75
add ebx, ecx
adc esi, 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
test ecx, ecx
je 0x40ee84
push eax
push dword [ebp + 0x10]
push esi
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
mov ecx, dword [ebp + 0x14]
add esp, 0x14
cmp eax, ecx
jne 0x40f031
add ebx, ecx
mov dword [esp + 4], ebx
adc esi, 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 0
jmp 0x40ef31
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x40e79c
mov edi, dword [esp + 0x60]
mov dword [esp + 0x10], esi
mov dword [esp + 4], ebx
test eax, eax
je 0x40ef31
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
push 0
push 0xfffffffffffffff1
push edi
call fcn.0040d950
add esp, 0xc
lea ecx, [esp + 0x48]
push eax
push ecx
push 0x40f360
mov esi, dword [esp + 0x18]
push esi
call fcn.0040d7b0
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.00404090
add esp, 0x18
cmp eax, 1
jne 0x40f060
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 + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], eax
push dword [esp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edi, eax
mov dword [esp + 0xc], ecx
or eax, ecx
je 0x40f16e
mov dword [esp + 0x48], 0x8074b50
mov ecx, dword [esp + 0x68]
mov byte [esp + 0x4c], cl
mov byte [esp + 0x4d], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x4e], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x4f], al
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
cmp dword [esp + 8], 0
je 0x40f04d
mov byte [esp + 0x50], cl
mov byte [esp + 0x51], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x52], al
mov eax, edx
shr eax, 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], al
mov byte [esp + 0x57], cl
mov ecx, edi
mov byte [esp + 0x58], cl
mov byte [esp + 0x59], ch
mov eax, edi
shr eax, 0x10
mov byte [esp + 0x5a], al
mov eax, edi
shr eax, 0x18
mov byte [esp + 0x5b], al
mov dword [esp + 0x24], 0x38
mov dword [esp + 0x60], 0x30
mov ecx, 0x28
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x64], 0x17
mov eax, dword [esp + 0xc]
mov byte [esp + 0x1b], al
mov dword [esp + 0xa0], 0x16
mov dword [esp + 0x9c], 0x15
mov dword [esp + 0x98], 0x14
jmp 0x40f0cc
push dword [esp + 0xc]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x40e79c
test edx, edx
je 0x40f07c
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x40e79c
push dword [esp + 0xc]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x40e79c
mov dword [esp + 0x50], ecx
mov dword [esp + 0x24], 0x18
mov dword [esp + 0x60], 0x10
mov ecx, 8
mov dword [esp + 0x64], 0xf
mov dword [esp + 0xa0], 0xe
mov eax, edi
mov byte [esp + 0x1b], al
mov dword [esp + 0x9c], 0xd
mov dword [esp + 0x98], 0xc
mov dword [esp + 0x20], 0x10
mov ebx, edi
mov edx, dword [esp + 0xc]
shrd ebx, edx, cl
mov eax, edx
shr eax, cl
test cl, 0x20
cmove eax, ebx
mov esi, edi
mov ecx, dword [esp + 0x60]
shrd esi, edx, cl
mov dword [esp + 0xa8], esi
movzx ebx, byte [esp + 0x1b]
mov esi, dword [esp + 0x98]
mov byte [esp + esi + 0x48], bl
mov ebx, dword [esp + 0x9c]
mov byte [esp + ebx + 0x48], al
mov eax, edx
shr eax, cl
test cl, 0x20
cmove eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa0]
mov byte [esp + ecx + 0x48], al
mov ecx, dword [esp + 0x24]
shrd edi, edx, cl
shr edx, cl
test cl, 0x20
cmove edx, edi
mov eax, dword [esp + 0x64]
mov byte [esp + eax + 0x48], dl
lea eax, [esp + 0x48]
mov esi, dword [esp + 0x20]
push esi
push eax
push dword [esp + 0x18]
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x40e79c
mov eax, dword [esp + 0x20]
add dword [esp + 4], eax
adc dword [esp + 0x10], 0
cmp dword [esp + 8], 0
je 0x40f1c0
xor ecx, ecx
mov edx, 0xfffffffe
cmp edx, dword [esp + 0x28]
mov eax, 0
sbb eax, dword [esp + 0x2c]
lea eax, [esp + 0x28]
cmovae eax, ecx
cmp edx, dword [esp + 0x30]
mov edx, 0
sbb edx, dword [esp + 0x34]
lea esi, [esp + 0x40]
cmovae esi, ecx
lea edx, [esp + 0x30]
cmovae edx, ecx
lea ecx, [esp + 0xb0]
push eax
push esi
call fcn.0040f300
add esp, 8
mov dword [esp + 0x1c], eax
movzx ebx, word [esp + 0x6c]
movzx esi, word [esp + 0x38]
movzx eax, word [esp + 0x1c]
movzx edi, word [esp + 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x44]
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0
push 0
push ebx
push esi
push dword [esp + 0x8c]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0xdc]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x4c]
push edi
call fcn.0040f3c0
add esp, 0x4c
test eax, eax
je 0x40e79c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov ecx, eax
xor ecx, 1
and eax, 1
lea eax, [ecx + eax*2]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 4]
mov dword [edx], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 4], eax
mov ebx, 1
jmp 0x40e79e