Function at 0x40d7e0
Capabilities:
Contain obfuscated stackstrings
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa0
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x9c], ecx
add esi, dword [ecx + 0x60]
mov dword [esp + 0x64], 0xabacaa7f
mov dword [esp + 0x68], 0x4eb6af99
mov dword [esp + 0x6c], 0x82b6b894
mov dword [esp + 0x70], 0xbf8b457a
mov dword [esp + 0x74], 0x878988bc
mov dword [esp + 0x78], 0x87808881
mov dword [esp + 0x7c], 0x847b8943
mov dword [esp + 0x80], 0xbcbfbbb2
mov dword [esp + 0x84], 0x1210148c
mov word [esp + 0x88], 0x1d12
mov dword [esp + 0x8a], 0
mov byte [esp + 0x8e], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x2a
ja 0x40d8ab
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x10]
movzx eax, byte [esp + eax + 0x64]
push dword [esp + 0x10]
push eax
call fcn.0040e500
add esp, 8
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x64], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x2b
jb 0x40d880
mov dword [esp + 8], 0xf10400ee
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 6
ja 0x40d8fb
mov eax, dword [esp + 0x10]
movzx eax, byte [esp + eax + 8]
push dword [esp + 0x10]
push eax
call fcn.0040e470
add esp, 8
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 8], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 7
jb 0x40d8d0
mov dword [esp + 0x10], 0xaeb0e4e5
mov dword [esp + 0x14], 0x52522024
mov dword [esp + 0x18], 0x575a5025
mov dword [esp + 0x1c], 0x5a5f4653
mov dword [esp + 0x20], 0x125f5352
mov dword [esp + 0x24], 0x483de7e9
mov dword [esp + 0x28], 0x4d47754e
mov dword [esp + 0x2c], 0x4e2a0078
mov dword [esp + 0x30], 0x40454143
mov dword [esp + 0x34], 0x78774175
mov dword [esp + 0x38], 0x752a037e
mov dword [esp + 0x3c], 0x32737773
mov dword [esp + 0x40], 0x624e607c
mov dword [esp + 0x44], 0x7e683d17
mov dword [esp + 0x48], 0x391f646d
mov dword [esp + 0x4c], 0x6a626c6a
mov dword [esp + 0x50], 0x6d321a32
mov dword [esp + 0x54], 0x19131915
mov dword [esp + 0x58], 0x6e171c09
mov word [esp + 0x5c], 0xa546
mov byte [esp + 0x60], 0
mov word [esp + 0x5e], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x50
ja 0x40d9e6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x10]
push dword [esp]
push eax
call fcn.0040e400
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x51
jb 0x40d9c0
mov eax, dword [esp + 0xb8]
movzx ecx, byte [esp + 0x10]
mov ebx, esi
test cl, cl
je 0x40da0b
lea edx, [esp + 0x11]
mov ebx, esi
nop
nop
mov byte [ebx], cl
inc ebx
movzx ecx, byte [edx]
inc edx
test cl, cl
jne 0x40da00
mov byte [ebx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x40da2b
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [ebx], cl
inc ebx
movzx ecx, byte [eax]
inc eax
test cl, cl
jne 0x40da20
mov byte [ebx], 0
movzx eax, byte [esp + 8]
test al, al
je 0x40da4b
lea ecx, [esp + 9]
nop
nop
nop
nop
nop
mov byte [ebx], al
inc ebx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40da40
mov ebp, dword [esp + 0xc0]
mov edx, dword [esp + 0xbc]
mov byte [ebx], 0
movzx eax, byte [esp + 0x64]
test al, al
mov dword [esp + 0x98], esi
je 0x40da7b
lea ecx, [esp + 0x65]
mov byte [ebx], al
inc ebx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40da70
mov byte [ebx], 0
mov ecx, ebp
shr ecx, 2
mov eax, edx
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov esi, ebp
and esi, 0xfffffffc
lea edi, [ebx + esi]
add esi, edx
mov edx, ebp
and edx, 3
mov ecx, edx
shr ecx, 1
mov ebp, esi
mov dword [esp + 4], edi
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
mov edi, edx
xor edi, 0xfffffffe
mov ecx, edx
or ecx, 1
and ecx, edi
je 0x40db18
mov edi, dword [esp + 0xc0]
not edi
or edi, 0xfffffffe
mov dword [esp + 0x90], edi
lea eax, [edx + edi]
mov dword [esp + 0x94], eax
movzx eax, byte [esi + eax + 1]
mov ebp, dword [esp + 4]
mov edi, dword [esp + 0x94]
mov byte [ebp + edi + 1], al
cmp ecx, 1
je 0x40db18
mov eax, dword [esp + 0x90]
add edx, eax
inc edx
movzx eax, byte [esi + edx + 1]
mov edi, dword [esp + 4]
mov byte [edi + edx + 1], al
cmp ecx, 2
je 0x40db18
movzx eax, byte [esi + edx + 2]
mov ecx, dword [esp + 4]
mov byte [ecx + edx + 2], al
mov dword [esp + 0x10], 0x2a294d4f
mov dword [esp + 0x14], 0x3e3e0c16
mov dword [esp + 0x18], 0xf6390808
mov dword [esp + 0x1c], 0xff03f0
mov dword [esp + 0x20], 0xf7f400fb
mov dword [esp + 0x24], 0xa3a5c803
mov dword [esp + 0x28], 0x92a5a7
mov dword [esp + 0x64], 0
mov eax, dword [esp + 0x64]
cmp eax, 0x1b
ja 0x40db9b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x64]
movzx eax, byte [esp + eax + 0x10]
push dword [esp + 0x64]
push eax
call fcn.0040e570
add esp, 8
mov ecx, dword [esp + 0x64]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0x64]
mov eax, dword [esp + 0x64]
cmp eax, 0x1c
jb 0x40db70
add ebx, dword [esp + 0xc0]
movzx eax, byte [esp + 0x10]
test al, al
mov edx, dword [esp + 0x98]
je 0x40dbcb
lea ecx, [esp + 0x11]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [ebx], al
inc ebx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40dbc0
mov byte [ebx], 0
sub ebx, edx
mov eax, dword [esp + 0x9c]
add dword [eax + 0x60], ebx
add esp, 0xa0
pop esi
pop edi
pop ebx
pop ebp
ret 0x10