Function at 0x40edf0
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 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 + 0x3c], ecx
or eax, ecx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 8], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x1c], ecx
mov ebx, edi
je 0x40ee57
mov eax, edi
and eax, 0x400
jmp 0x40ee69
and edi, 0x400
xor eax, eax
cmp dword [ebp + 0x14], 0
je 0x40ee6f
test edi, edi
jne 0x40ee6f
mov edi, eax
mov ax, 8
movzx ecx, ax
lea eax, [ecx + 0x800]
test ebx, 0x10000
cmove ecx, eax
mov dword [esp + 0x7c], ecx
and ebx, 0xf
sete al
mov dword [esp + 0x14], edi
test edi, edi
setne cl
mov edi, dword [edx + 0x48]
test edi, edi
je 0x40eeee
cmp dword [edx + 0x14], 2
jne 0x40eeee
cmp dword [ebp + 0x14], 0
setne ch
cmp dword [ebp + 0x10], 0
sete ah
cmp dword [ebp + 0xc], 0
je 0x40eeee
and ah, ch
jne 0x40eeee
cmp word [ebp + 0x1c], 0
je 0x40eee9
cmp dword [ebp + 0x18], 0
je 0x40eeee
cmp ebx, 0xa
ja 0x40eeee
mov dword [esp + 0xc], edi
cmp dword [edi + 0x34], 0
mov edx, dword [edx + 0x10]
je 0x40ef01
cmp edx, 0xffffffff
jne 0x40ef1b
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x40eef5
cmp ebx, 0xb
jb 0x40eecb
mov dword [edx + 0x1c], 0x18
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [esp + 0x3c], 0
jne 0x40ef10
cmp edx, 0xffff
jne 0x40ef1b
mov edx, dword [esp + 0xc]
mov dword [edx + 0x34], 1
or al, cl
movzx edx, al
cmp dword [esp + 0x14], 0
je 0x40ef5b
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x2f
mov eax, dword [ebp + 8]
je 0x40f005
mov dword [esp + 0x24], edx
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x74], eax
push dword [ebp + 0xc]
call fcn.00417ce0
add esp, 4
cmp eax, 0x10000
jb 0x40ef71
mov eax, dword [ebp + 8]
jmp 0x40f005
or esi, dword [esp + 0x3c]
mov eax, dword [ebp + 8]
je 0x40eff9
mov dword [eax + 0x1c], 0x18
jmp 0x40eef5
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x20], eax
movzx eax, word [ebp + 0x1c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x10], 0
mov edi, 0xfffffffe
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx + 0x24]
or edx, eax
mov edx, 0
je 0x40efae
lea edx, [edi + eax]
inc edx
mov ecx, dword [ecx]
and ecx, edx
sub eax, ecx
and eax, edx
mov edx, eax
mov dword [esp + 0x48], edx
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebx + 4]
xor edx, edx
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x20]
add edi, eax
setb dl
mov dword [esp + 0x70], ecx
add edi, ecx
adc edx, 0
mov ecx, edi
mov dword [esp + 0x4c], edi
add ecx, 0x4a
adc edx, 0
mov edi, 0xfffffffe
cmp edi, ecx
sbb dword [esp + 0x10], edx
jae 0x40f011
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x40eef5
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0x2f
jne 0x40f0a7
mov dword [eax + 0x1c], 0x19
jmp 0x40eef5
mov edi, dword [ebx + 0x34]
test edi, edi
jne 0x40f073
mov ebx, eax
shr ebx, 0x1f
xor edi, edi
mov edx, dword [esp + 0x78]
add edx, dword [ebp + 0x38]
mov ecx, 0
adc ecx, 0xffffffff
add edx, dword [ebp + 0x40]
adc ecx, 0
mov eax, dword [esp + 0x20]
add eax, eax
add edx, eax
adc ecx, ebx
add edx, dword [esp + 0x48]
adc ecx, 0
add edx, dword [esp + 0x70]
adc ecx, 0
mov eax, dword [ebp + 8]
add edx, dword [eax]
adc ecx, dword [eax + 4]
mov eax, dword [esp + 0x20]
add edx, 0x72
adc ecx, 0
cmp ecx, 0xffffffff
je 0x40f073
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x34], 1
mov edi, 1
xor edx, edx
test eax, eax
je 0x40f0ed
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x20]
cmp byte [ecx + eax - 1], 0x2f
mov ecx, dword [ebp + 8]
jne 0x40f0f0
cmp dword [ebp + 0x14], 0
jne 0x40f09b
mov edx, 0x10
or esi, dword [esp + 0x3c]
je 0x40f0f0
mov dword [ecx + 0x1c], 0x18
jmp 0x40eef5
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push 0
mov esi, edx
call fcn.004034c0
add esp, 0xc
mov dword [esp + 0x74], eax
xor ecx, ecx
mov dword [esp + 0x30], edi
cmp edi, 4
mov eax, 1
cmovb esi, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
cmovb ebx, ecx
mov esi, edi
jmp 0x40ef41
mov ecx, dword [ebp + 8]
mov dword [esp + 0x3c], edx
test edi, edi
mov eax, 0x1c
cmove eax, edi
mov edx, dword [esp + 0x4c]
add eax, edx
add eax, 0x2e
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 8]
cmp edx, eax
jae 0x40f161
test edx, edx
mov esi, 1
cmovne esi, edx
cmp esi, eax
jae 0x40f13c
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 0x40f120
push esi
mov edi, dword [esp + 0x10]
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 0x40f2c8
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 + 8]
jae 0x40f1c5
test edx, edx
mov esi, 1
cmovne esi, edx
cmp esi, eax
jae 0x40f19a
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 0x40f17e
push esi
mov edi, dword [esp + 0x10]
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 0x40f2c8
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], esi
mov ecx, ebx
mov ebx, dword [esp + 8]
xor eax, eax
cmp dword [ebp + 0x14], 0
je 0x40f1f2
cmp dword [esp + 0x24], 0
jne 0x40f1f2
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 0x40f3e1
mov dword [esp + 0x10], eax
mov esi, ecx
mov edx, ebx
mov edi, dword [esp + 0x48]
push edi
push dword [esp + 0x20]
call fcn.0040f990
add esp, 8
test eax, eax
je 0x40f2d4
cmp dword [esp + 0x24], 0
setne dl
cmp dword [esp + 0x14], 0
sete dh
mov eax, dword [esp + 0x28]
add eax, edi
mov ecx, dword [esp + 0x2c]
adc ecx, 0
mov esi, ebx
and esi, edi
xor ebx, edi
mov edi, eax
mov eax, esi
shr eax, 0x1f
add esi, esi
add ebx, esi
mov esi, ecx
adc eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ecx
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movups xmmword [esp + 0x8e], xmm0
and dh, dl
mov dl, dh
xor dl, 1
movzx ecx, dl
shl ecx, 3
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x34], 0
je 0x40f2e6
mov byte [esp + 0xc], dh
mov dword [esp + 0x1c], 0
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x30]
mov edx, 0
sbb edx, dword [esp + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 0x4c], ecx
jae 0x40f3ed
xor edx, edx
cmp eax, edi
mov eax, 0
sbb eax, esi
lea eax, [esp + 0x28]
cmovae eax, edx
lea edx, [esp + 0x30]
lea esi, [esp + 0x40]
jmp 0x40f400
mov dword [ebx + 0x1c], 0x10
jmp 0x40eef5
push dword [esp + 0x10]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
jmp 0x40eef5
cmp dword [esp + 0x44], 0
jne 0x40f798
cmp dword [esp + 0x14], 0
jne 0x40f798
mov dword [esp + 8], ebx
mov dword [esp + 0x80], 0x4034b50
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 dword [esp + 0x4c], ecx
mov byte [esp + 0x88], cl
movups xmmword [esp + 0x89], xmm0
mov byte [esp + 0x99], 0
mov eax, dword [esp + 0x20]
mov byte [esp + 0x9a], al
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 esi
push edi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40f53b
mov eax, dword [esp + 8]
add eax, 0x1e
mov ecx, esi
mov esi, dword [esp + 0x14]
adc esi, 0
mov edi, dword [esp + 0x20]
push edi
push dword [ebp + 0xc]
push esi
mov dword [esp + 0x14], eax
push eax
push dword [ecx + 0x44]
call dword [ecx + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x40f52b
mov eax, edi
mov edi, dword [esp + 8]
add edi, eax
adc esi, 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0
jmp 0x40f54f
mov dword [ecx + 0x1c], 0x10
jmp 0x40eef5
cmp eax, edi
mov edx, 0
sbb edx, esi
jae 0x40f425
lea eax, [esp + 0x28]
xor edx, edx
xor esi, esi
lea ebx, [esp + 0xc0]
mov ecx, ebx
push eax
push esi
call fcn.0040fa30
add esp, 8
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x4c]
jmp 0x40f427
xor eax, eax
mov dword [esp + 0x80], 0x4034b50
xor ebx, ebx
cmp byte [esp + 0xc], 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 + 0xc], eax
lea edx, [eax + edx]
mov byte [esp + 0x88], cl
xorps xmm0, xmm0
movups xmmword [esp + 0x89], xmm0
mov byte [esp + 0x99], 0
mov eax, dword [esp + 0x20]
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 esi
push edi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40f53b
mov ecx, dword [esp + 8]
add ecx, 0x1e
mov eax, esi
mov esi, dword [esp + 0x14]
adc esi, 0
mov edi, dword [esp + 0x20]
push edi
push dword [ebp + 0xc]
push esi
mov dword [esp + 0x14], ecx
push ecx
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x40f52b
mov eax, edi
mov edi, dword [esp + 8]
add edi, eax
adc esi, 0
cmp dword [esp + 0x1c], 0
je 0x40f547
lea eax, [esp + 0xc0]
mov ebx, dword [esp + 0xc]
push ebx
push eax
push esi
push edi
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x40f5ba
add edi, ebx
adc esi, 0
jmp 0x40f54f
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 0x40eef7
mov dword [esp + 0x1c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x40f574
push ecx
push dword [ebp + 0x34]
push esi
push edi
push dword [eax + 0x44]
call dword [eax + 0x3c]
mov ecx, dword [ebp + 0x38]
add esp, 0x14
cmp eax, ecx
jne 0x40f5ba
add edi, ecx
adc esi, 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x40f5c9
push eax
push dword [ebp + 0x10]
push esi
push edi
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 0x40f778
add edi, ecx
mov dword [esp + 8], edi
adc esi, 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 0
jmp 0x40f678
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x40eef5
mov ecx, edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x14], esi
mov dword [esp + 8], ecx
test eax, eax
je 0x40f678
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
push 0
push 0xfffffffffffffff1
push edi
call fcn.0040e1b0
add esp, 0xc
lea ecx, [esp + 0x50]
push eax
push ecx
push 0x40faa0
mov esi, dword [esp + 0x1c]
push esi
call fcn.0040e000
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.00404260
add esp, 0x18
cmp eax, 1
jne 0x40f7a7
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 + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x14], 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 + 0x30]
mov ecx, dword [esp + 0x34]
mov edi, eax
mov dword [esp + 0x24], ecx
or eax, ecx
je 0x40f8b5
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 + 0x1c], 0
je 0x40f794
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 + 0x48], 0x38
mov dword [esp + 0x6c], 0x30
mov ecx, 0x28
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x70], 0x17
mov eax, dword [esp + 0x24]
mov byte [esp + 0x1b], al
mov dword [esp + 0xb4], 0x16
mov dword [esp + 0xb0], 0x15
mov dword [esp + 0xac], 0x14
jmp 0x40f813
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 0x40eef5
test edx, edx
je 0x40f7c3
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x40eef5
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 0x40eef5
mov dword [esp + 0x58], ecx
mov dword [esp + 0x48], 0x18
mov dword [esp + 0x6c], 0x10
mov ecx, 8
mov dword [esp + 0x70], 0xf
mov dword [esp + 0xb4], 0xe
mov eax, edi
mov byte [esp + 0x1b], al
mov dword [esp + 0xb0], 0xd
mov dword [esp + 0xac], 0xc
mov dword [esp + 0x10], 0x10
mov ebx, edi
mov edx, dword [esp + 0x24]
shrd ebx, edx, cl
mov eax, edx
shr eax, cl
test cl, 0x20
cmove eax, ebx
mov esi, edi
mov ecx, dword [esp + 0x6c]
shrd esi, edx, cl
mov dword [esp + 0xb8], esi
movzx ebx, byte [esp + 0x1b]
mov esi, dword [esp + 0xac]
mov byte [esp + esi + 0x50], bl
mov ebx, dword [esp + 0xb0]
mov byte [esp + ebx + 0x50], al
mov eax, edx
shr eax, cl
test cl, 0x20
cmove eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb4]
mov byte [esp + ecx + 0x50], al
mov ecx, dword [esp + 0x48]
shrd edi, edx, cl
shr edx, cl
test cl, 0x20
cmove edx, edi
mov eax, dword [esp + 0x70]
mov byte [esp + eax + 0x50], dl
lea eax, [esp + 0x50]
mov esi, dword [esp + 0x10]
push esi
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x40eef5
mov eax, dword [esp + 0x10]
add dword [esp + 8], eax
adc dword [esp + 0x14], 0
cmp dword [esp + 0x1c], 0
je 0x40f907
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 + 0xc0]
push eax
push esi
call fcn.0040fa30
add esp, 8
mov dword [esp + 0xc], eax
movzx ebx, word [esp + 0x7c]
movzx esi, word [esp + 0x4c]
movzx eax, word [esp + 0xc]
movzx edi, word [esp + 0x20]
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 + 0x98]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0xb0]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x60]
push edi
call fcn.0040fb10
add esp, 0x4c
test eax, eax
je 0x40eef5
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov ebx, 1
jmp 0x40eef7