Function at 0x40d370
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, 0x98
mov edi, dword [esp + 0xac]
mov dword [esp + 0x68], ecx
add edi, dword [ecx + 0x60]
mov dword [esp + 0x6c], 0x171c1e23
mov dword [esp + 0x70], 0x5a121b01
mov dword [esp + 0x74], 0x1e0af02c
mov dword [esp + 0x78], 0xb1f5d36
mov dword [esp + 0x7c], 0xb111004
mov dword [esp + 0x80], 0x3081009
mov dword [esp + 0x84], 0xf4b701b7
mov dword [esp + 0x88], 0xecebf7ee
mov dword [esp + 0x8c], 0x9e989cf4
mov word [esp + 0x90], 0x859e
mov dword [esp + 0x92], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x29
ja 0x40d443
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x6c]
mov edx, eax
xor edx, 0x1df509e8
mov esi, eax
xor esi, 0x620af617
or eax, 0x1df509e8
and eax, esi
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x78
mov ecx, dword [esp]
mov byte [esp + ecx + 0x6c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x2a
jb 0x40d400
mov dword [esp], 0x1f10147e
mov word [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 5
ja 0x40d4a1
nop
nop
nop
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]
add eax, 0xd734c93a
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xde
mov ecx, dword [esp + 8]
mov byte [esp + ecx], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 6
jb 0x40d470
mov dword [esp + 0x10], 0x9a98d4d5
mov dword [esp + 0x14], 0x8686e8e4
mov dword [esp + 0x18], 0x83b688f5
mov dword [esp + 0x1c], 0x8e8382b7
mov dword [esp + 0x20], 0xfe8bbfbe
mov dword [esp + 0x24], 0x80d52321
mov dword [esp + 0x28], 0x85b38582
mov dword [esp + 0x2c], 0xb2def880
mov dword [esp + 0x30], 0x888d898f
mov dword [esp + 0x34], 0x90ab89b5
mov dword [esp + 0x38], 0xade6df92
mov dword [esp + 0x3c], 0xe6a79397
mov dword [esp + 0x40], 0xae9aa8ac
mov dword [esp + 0x44], 0x5260edd3
mov dword [esp + 0x48], 0x112b545d
mov dword [esp + 0x4c], 0x5e565c5e
mov dword [esp + 0x50], 0x551e261e
mov dword [esp + 0x54], 0x71475155
mov dword [esp + 0x58], 0x3a434c41
mov word [esp + 0x5c], 0xe502
mov byte [esp + 0x62], 0
mov dword [esp + 0x5e], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x52
ja 0x40d59e
nop
nop
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, eax
xor edx, 0xf2bef74a
and eax, 0xf2bef74a
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x8e
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x53
jb 0x40d560
mov eax, dword [esp + 0xb0]
movzx ecx, byte [esp + 0x10]
mov edx, edi
test cl, cl
je 0x40d5cb
lea esi, [esp + 0x11]
mov edx, edi
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 0x40d5c0
mov byte [edx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x40d5eb
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 0x40d5e0
mov byte [edx], 0
movzx eax, byte [esp]
test al, al
je 0x40d60b
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 0x40d600
mov ebp, dword [esp + 0xb4]
mov byte [edx], 0
movzx eax, byte [esp + 0x6c]
test al, al
mov dword [esp + 0x64], edi
je 0x40d63b
lea ecx, [esp + 0x6d]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40d630
mov byte [edx], 0
mov ebx, dword [esp + 0xb8]
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 0x40d684
mov ecx, dword [esp + 0xb8]
and ecx, 2
movzx eax, byte [eax + ecx]
mov byte [esi + ecx], al
mov dword [esp + 0x10], 0x46479b65
mov dword [esp + 0x14], 0x4246303e
mov dword [esp + 0x18], 0x32473434
mov dword [esp + 0x1c], 0x24112914
mov dword [esp + 0x20], 0x11102c29
mov dword [esp + 0x24], 0x857b5c21
mov word [esp + 0x28], 0x837d
mov byte [esp + 0x2a], 0x8a
mov dword [esp + 0x2b], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x1e
mov edi, dword [esp + 0x64]
ja 0x40d719
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
mov esi, eax
xor esi, 0x488e3964
and eax, 0xc88e3964
lea eax, [esi + eax*2]
xor eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
add al, 0xc
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x1f
jb 0x40d6e0
add edx, dword [esp + 0xb8]
movzx eax, byte [esp + 0x10]
test al, al
je 0x40d73b
lea ecx, [esp + 0x11]
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40d730
mov byte [edx], 0
mov eax, edx
xor eax, edi
not edi
and edi, edx
add edi, edi
sub edi, eax
mov eax, dword [esp + 0x68]
add dword [eax + 0x60], edi
add esp, 0x98
pop esi
pop edi
pop ebx
pop ebp
ret 0x10