Function at 0x40d7e0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x94
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x68], ecx
add edi, dword [ecx + 0x60]
mov dword [esp + 0x6c], 0x1b040a27
mov dword [esp + 0x70], 0xc61e0709
mov dword [esp + 0x74], 0x121e183c
mov dword [esp + 0x78], 0x72bedca
mov dword [esp + 0x7c], 0x1f192804
mov dword [esp + 0x80], 0xf101811
mov dword [esp + 0x84], 0x6cab09d3
mov dword [esp + 0x88], 0x64676b62
mov dword [esp + 0x8c], 0x82808c74
mov dword [esp + 0x90], 0xf582
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x27
ja 0x40d8b5
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x6c]
mov edx, eax
xor edx, 0xe8a441a6
and eax, 0xe8a441a6
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, eax
not ecx
and ecx, 0x3e
and eax, 0xc1
sub eax, ecx
mov ecx, dword [esp]
mov byte [esp + ecx + 0x6c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x28
jb 0x40d870
mov dword [esp], 0x3f30345e
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 7
ja 0x40d91c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx]
mov edx, eax
xor edx, 0x8d29f90a
and eax, 0xd29f90a
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xce
mov ecx, dword [esp + 8]
mov byte [esp + ecx], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 8
jb 0x40d8e0
mov dword [esp + 0x10], 0xa2bce8f7
mov dword [esp + 0x14], 0xa6ba9490
mov dword [esp + 0x18], 0xb5a2ac97
mov dword [esp + 0x1c], 0xaea9b2a1
mov dword [esp + 0x20], 0xde919da2
mov dword [esp + 0x24], 0x9cabf1fb
mov dword [esp + 0x28], 0x9399979e
mov dword [esp + 0x2c], 0x9aa2d494
mov dword [esp + 0x30], 0x8c8b8b91
mov dword [esp + 0x34], 0x8c818b87
mov dword [esp + 0x38], 0x8bd2bd8e
mov dword [esp + 0x3c], 0xc6858181
mov dword [esp + 0x40], 0x6e7e6c90
mov dword [esp + 0x44], 0x6a7c2f45
mov dword [esp + 0x48], 0x2741787f
mov dword [esp + 0x4c], 0x7e7a787a
mov dword [esp + 0x50], 0x633a5622
mov dword [esp + 0x54], 0x6f656367
mov dword [esp + 0x58], 0x5269607b
mov word [esp + 0x5c], 0x1736
mov byte [esp + 0x62], 0
mov dword [esp + 0x5e], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x52
ja 0x40da1d
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esp + ecx + 0x10]
add eax, 0xf571a8cf
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov ecx, eax
xor ecx, 0xb
and eax, 0x74
add eax, eax
sub eax, ecx
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x53
jb 0x40d9e0
mov eax, dword [esp + 0xac]
movzx ecx, byte [esp + 0x10]
mov edx, edi
test cl, cl
je 0x40da4b
lea esi, [esp + 0x11]
mov edx, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40da40
mov byte [edx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x40da6b
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [eax]
inc eax
test cl, cl
jne 0x40da60
mov byte [edx], 0
movzx eax, byte [esp]
test al, al
je 0x40da8b
lea ecx, [esp + 1]
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40da80
mov ebx, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb0]
mov byte [edx], 0
movzx eax, byte [esp + 0x6c]
test al, al
mov dword [esp + 0x64], edi
je 0x40dabb
lea ecx, [esp + 0x6d]
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40dab0
mov byte [edx], 0
mov ecx, ebx
shr ecx, 2
mov eax, ebp
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and eax, 0xfffffffc
lea esi, [edx + eax]
add eax, ebp
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov ebp, eax
mov edi, esi
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
test bl, 1
je 0x40daf8
mov ecx, ebx
and ecx, 2
movzx eax, byte [eax + ecx]
mov byte [esi + ecx], al
mov dword [esp + 0x10], 0xe2e3dfdd
mov dword [esp + 0x14], 0xeeeab8ba
mov dword [esp + 0x18], 0xb6e3bcbc
mov dword [esp + 0x1c], 0xb4a9b1ac
mov dword [esp + 0x20], 0x9998b4b1
mov dword [esp + 0x24], 0xf5f7d489
mov word [esp + 0x28], 0xf7f5
mov byte [esp + 0x2a], 0xee
mov dword [esp + 0x2b], 0
mov byte [esp + 0x2f], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x1f
mov esi, dword [esp + 0x64]
ja 0x40db8e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
add eax, 0x7eb0c14e
xor eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
add al, 0x7a
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x20
jb 0x40db60
add edx, ebx
movzx eax, byte [esp + 0x10]
test al, al
je 0x40dbab
lea ecx, [esp + 0x11]
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40dba0
mov byte [edx], 0
sub edx, esi
mov eax, dword [esp + 0x68]
add dword [eax + 0x60], edx
add esp, 0x94
pop esi
pop edi
pop ebx
pop ebp
ret 0x10