Function at 0x40d840
Capabilities:
Contain obfuscated stackstrings
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], 0xa5a8aad1
mov dword [esp + 0x60], 0x165a55b3
mov dword [esp + 0x64], 0x4a526438
mov dword [esp + 0x68], 0x51410f26
mov dword [esp + 0x6c], 0x41474450
mov dword [esp + 0x70], 0x49445c5b
mov dword [esp + 0x74], 0x40014b05
mov dword [esp + 0x78], 0x5055495e
mov dword [esp + 0x7c], 0xeaece840
mov dword [esp + 0x80], 0xc7ee
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x27
ja 0x40d8eb
nop
mov eax, dword [esp + 8]
movzx eax, byte [esp + eax + 0x5c]
push dword [esp + 8]
push eax
call fcn.0040e4c0
add esp, 8
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x5c], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x28
jb 0x40d8c0
mov dword [esp + 4], 0xb780bca6
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 3
ja 0x40d93b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
movzx eax, byte [esp + eax + 4]
push dword [esp + 8]
push eax
call fcn.0040e450
add esp, 8
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 4], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 4
jb 0x40d910
mov dword [esp + 8], 0x7a78b4b5
mov dword [esp + 0xc], 0x4646a8a4
mov dword [esp + 0x10], 0x43564895
mov dword [esp + 0x14], 0x4e434257
mov dword [esp + 0x18], 0x9e4b5f5e
mov dword [esp + 0x1c], 0x4075a3a1
mov dword [esp + 0x20], 0x45534542
mov dword [esp + 0x24], 0x527e9840
mov dword [esp + 0x28], 0x484d494f
mov dword [esp + 0x2c], 0xb0ab4955
mov dword [esp + 0x30], 0xad667fb2
mov dword [esp + 0x34], 0x66a7b3b7
mov dword [esp + 0x38], 0xaebaa8ac
mov dword [esp + 0x3c], 0xb2a06d73
mov dword [esp + 0x40], 0x716bb4bd
mov dword [esp + 0x44], 0xbeb6bcbe
mov dword [esp + 0x48], 0xb57e667e
mov dword [esp + 0x4c], 0x9187b1b5
mov dword [esp + 0x50], 0x5a838c81
mov word [esp + 0x54], 0x6542
mov dword [esp + 0x56], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x51
ja 0x40da26
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 8]
push dword [esp]
push eax
call fcn.0040e3e0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x52
jb 0x40da00
mov eax, dword [esp + 0xa4]
movzx ecx, byte [esp + 8]
mov ebx, esi
test cl, cl
je 0x40da4b
lea edx, [esp + 9]
mov ebx, esi
nop
nop
mov byte [ebx], cl
inc ebx
movzx ecx, byte [edx]
inc edx
test cl, cl
jne 0x40da40
mov byte [ebx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x40da6b
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 0x40da60
mov byte [ebx], 0
movzx eax, byte [esp + 4]
test al, al
je 0x40da8b
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 0x40da80
mov edx, dword [esp + 0xa8]
mov byte [ebx], 0
movzx eax, byte [esp + 0x5c]
test al, al
mov dword [esp + 0x84], esi
je 0x40dabb
lea ecx, [esp + 0x5d]
nop
nop
nop
nop
nop
nop
nop
mov byte [ebx], al
inc ebx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40dab0
mov byte [ebx], 0
mov ebp, dword [esp + 0xac]
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 eax, [ebx + esi]
add esi, edx
mov ecx, ebp
shr ecx, 1
and ecx, 1
mov edx, esi
mov edi, eax
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov ecx, ebp
test cl, 1
je 0x40db06
mov ecx, dword [esp + 0xac]
and ecx, 2
movzx edx, byte [esi + ecx]
mov byte [eax + ecx], dl
mov dword [esp + 8], 0x7a792517
mov dword [esp + 0xc], 0x7676444e
mov dword [esp + 0x10], 0x3e093848
mov dword [esp + 0x14], 0x30c733c0
mov dword [esp + 0x18], 0xcfcc303b
mov dword [esp + 0x1c], 0x536d0833
mov word [esp + 0x20], 0x4d6f
mov byte [esp + 0x22], 0x42
mov dword [esp + 0x23], 0
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x5c]
cmp eax, 0x1e
ja 0x40db8b
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x5c]
movzx eax, byte [esp + eax + 8]
push dword [esp + 0x5c]
push eax
call fcn.0040e540
add esp, 8
mov ecx, dword [esp + 0x5c]
mov byte [esp + ecx + 8], al
inc dword [esp + 0x5c]
mov eax, dword [esp + 0x5c]
cmp eax, 0x1f
jb 0x40db60
add ebx, dword [esp + 0xac]
movzx eax, byte [esp + 8]
test al, al
mov edx, dword [esp + 0x84]
je 0x40dbbb
lea ecx, [esp + 9]
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 0x40dbb0
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