Function at 0x40da40
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, 0x8c
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x88], ecx
add esi, dword [ecx + 0x60]
mov dword [esp + 0x5c], 0x777c7ea3
mov dword [esp + 0x60], 0xba727b41
mov dword [esp + 0x64], 0x7e4a506c
mov dword [esp + 0x68], 0x4b7fbd96
mov dword [esp + 0x6c], 0x4b717044
mov dword [esp + 0x70], 0x43487049
mov dword [esp + 0x74], 0x54974197
mov dword [esp + 0x78], 0x6c6b576e
mov dword [esp + 0x7c], 0xbeb8bc54
mov dword [esp + 0x80], 0xc5be
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x27
ja 0x40daeb
nop
mov eax, dword [esp + 0xc]
movzx eax, byte [esp + eax + 0x5c]
push dword [esp + 0xc]
push eax
call fcn.0040e680
add esp, 8
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x5c], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x28
jb 0x40dac0
mov dword [esp + 4], 0x1124203e
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 7
ja 0x40db3b
nop
nop
nop
nop
mov eax, dword [esp + 0xc]
movzx eax, byte [esp + eax + 4]
push dword [esp + 0xc]
push eax
call fcn.0040e640
add esp, 8
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 4], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 8
jb 0x40db10
mov dword [esp + 0xc], 0x4640bcbd
mov dword [esp + 0x10], 0x4242b0ac
mov dword [esp + 0x14], 0x7f4a408d
mov dword [esp + 0x18], 0x7a477e43
mov dword [esp + 0x1c], 0x82774342
mov dword [esp + 0x20], 0x4895afa9
mov dword [esp + 0x24], 0x556f5d56
mov dword [esp + 0x28], 0x568a9058
mov dword [esp + 0x2c], 0x505d5153
mov dword [esp + 0x30], 0x585f515d
mov dword [esp + 0x34], 0x9d5a73a6
mov dword [esp + 0x38], 0x62a3afa3
mov dword [esp + 0x3c], 0x92a69094
mov dword [esp + 0x40], 0x96a8557f
mov dword [esp + 0x44], 0x49678cb5
mov dword [esp + 0x48], 0x8ab2b48a
mov dword [esp + 0x4c], 0x85426a42
mov dword [esp + 0x50], 0xb983b9bd
mov dword [esp + 0x54], 0x56bf84b9
mov dword [esp + 0x58], 0x1d7e
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x4f
ja 0x40dc16
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0xc]
push dword [esp]
push eax
call fcn.0040e5e0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x50
jb 0x40dbf0
mov eax, dword [esp + 0xa4]
movzx ecx, byte [esp + 0xc]
mov ebx, esi
test cl, cl
je 0x40dc3b
lea edx, [esp + 0xd]
mov ebx, esi
nop
nop
mov byte [ebx], cl
inc ebx
movzx ecx, byte [edx]
inc edx
test cl, cl
jne 0x40dc30
mov byte [ebx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x40dc5b
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 0x40dc50
mov byte [ebx], 0
movzx eax, byte [esp + 4]
test al, al
je 0x40dc7b
lea ecx, [esp + 5]
nop
nop
nop
nop
nop
mov byte [ebx], al
inc ebx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40dc70
mov edi, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
mov byte [ebx], 0
movzx eax, byte [esp + 0x5c]
test al, al
mov dword [esp + 0x84], esi
je 0x40dcab
lea ecx, [esp + 0x5d]
mov byte [ebx], al
inc ebx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40dca0
mov byte [ebx], 0
mov ecx, edi
shr ecx, 2
mov eax, edx
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov esi, dword [esp + 0xac]
and esi, 0xfffffffc
lea eax, [ebx + esi]
mov ebp, dword [esp + 0xac]
and ebp, 3
add esi, edx
mov ecx, ebp
shr ecx, 1
mov edx, esi
mov edi, eax
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edi, dword [esp + 0xac]
mov ecx, edi
xor ecx, 2
and ecx, ebp
je 0x40dd1e
mov ebp, eax
mov edx, edi
and edx, 2
movzx eax, byte [esi + edx]
mov byte [ebp + edx], al
cmp ecx, 1
je 0x40dd1e
movzx eax, byte [esi + edx + 1]
mov byte [ebp + edx + 1], al
cmp ecx, 2
je 0x40dd1e
movzx eax, byte [esi + edx + 2]
mov byte [ebp + edx + 2], al
mov dword [esp + 0xc], 0x7a792517
mov dword [esp + 0x10], 0x7676444e
mov dword [esp + 0x14], 0x3e093848
mov dword [esp + 0x18], 0x30c733c0
mov dword [esp + 0x1c], 0xcfcc303b
mov dword [esp + 0x20], 0x536d0833
mov word [esp + 0x24], 0x4d6f
mov byte [esp + 0x26], 0x42
mov dword [esp + 0x27], 0
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x5c]
cmp eax, 0x1e
ja 0x40ddab
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x5c]
movzx eax, byte [esp + eax + 0xc]
push dword [esp + 0x5c]
push eax
call fcn.0040e6e0
add esp, 8
mov ecx, dword [esp + 0x5c]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 0x5c]
mov eax, dword [esp + 0x5c]
cmp eax, 0x1f
jb 0x40dd80
add ebx, edi
movzx eax, byte [esp + 0xc]
test al, al
mov edx, dword [esp + 0x84]
je 0x40dddb
lea ecx, [esp + 0xd]
nop
nop
nop
nop
nop
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 0x40ddd0
mov byte [ebx], 0
sub ebx, edx
mov eax, dword [esp + 0x88]
add dword [eax + 0x60], ebx
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret 0x10