Function at 0x40d930
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, 0xa8
cmp dword [ecx + 0x20], 0
je 0x40dea6
mov esi, ecx
movzx eax, byte [ecx]
lea ecx, [esp + 0xa4]
push 0xa
push 4
push ecx
push eax
call fcn.0040dec0
add esp, 0x10
mov ebx, eax
lea eax, [esi + 0x10]
push eax
call fcn.0040a520
add esp, 4
mov ebp, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x18], eax
lea eax, [ebp + 0x400]
push eax
call fcn.0040c690
add esp, 4
mov edi, eax
mov dword [esp + 0x1c], 0xadaddeac
mov byte [esp + 0x20], 0x40
mov dword [esp + 0x21], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x40d9f9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x1c]
mov edx, eax
xor edx, 0xc4932291
and eax, 0xc4932291
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x2b
mov ecx, dword [esp]
mov byte [esp + ecx + 0x1c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x40d9c0
lea eax, [esp + 0x1c]
mov ecx, esi
push 0x44e054
push eax
push edi
call fcn.0040d2a0
mov dword [esp + 0x1c], 0xd9bea4b4
mov byte [esp + 0x20], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x40da69
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x1c]
mov edx, eax
xor edx, 0xac19d5cf
and eax, 0x2c19d5cf
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xf5
mov ecx, dword [esp]
mov byte [esp + ecx + 0x1c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x40da30
mov ecx, esi
push ebx
lea ebx, [esp + 0x20]
push ebx
push edi
call fcn.0040d2a0
mov eax, dword [str.MeHdy4__pl9vrs4]
mov dword [esp + 0x1c], 0x51eae4e0
mov byte [esp + 0x20], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 4
ja 0x40dad0
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x1c]
add ecx, 0x6cdd156d
xor ecx, edx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
add cl, 0xdf
mov edx, dword [esp]
mov byte [esp + edx + 0x1c], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 5
jb 0x40daa0
mov ecx, esi
push eax
push ebx
push edi
call fcn.0040d2a0
mov dword [esp + 0x1c], 0xf5e0e8f9
mov dword [esp + 0x20], 0xe0f5fcf1
mov dword [esp + 0x24], 0xfefff4e1
mov byte [esp + 0x28], 0x58
mov word [esp + 0x29], 0
mov byte [esp + 0x2b], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x40db59
nop
nop
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 + 0x1c]
mov edx, eax
xor edx, 0x9268806d
and eax, 0x1268806d
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xdf
mov ecx, dword [esp]
mov byte [esp + ecx + 0x1c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x40db20
mov dword [esp + 8], 0x73ced2d1
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x40dbbc
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0x9d706e14
and eax, 0x1d706e14
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0x9c
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 7
jb 0x40db80
lea eax, [esp + 8]
mov ecx, esi
push ebx
push eax
push edi
call fcn.0040d2a0
mov dword [esp + 0x1c], 0xc6fef8c6
mov byte [esp + 0x20], 0x64
mov dword [esp + 0x21], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x40dc39
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x1c]
mov edx, eax
xor edx, 0x9930a718
and eax, 0x1930a718
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x88
mov ecx, dword [esp]
mov byte [esp + ecx + 0x1c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x40dc00
mov ecx, esi
push ebp
push dword [esp + 0x1c]
push ebx
push edi
call fcn.0040d530
mov eax, dword [esi + 0x60]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x36d0143
mov dword [esp + 0x20], 0x772056a
mov dword [esp + 0x24], 0xb64096d
mov dword [esp + 0x28], 0xf230d78
mov dword [esp + 0x2c], 0x136b1144
mov dword [esp + 0x30], 0x17731564
mov dword [esp + 0x34], 0x1b3a1922
mov dword [esp + 0x38], 0x1f6b1d71
mov dword [esp + 0x3c], 0x2356214c
mov dword [esp + 0x40], 0x2756254d
mov dword [esp + 0x44], 0x2b582949
mov dword [esp + 0x48], 0x2f012d58
mov dword [esp + 0x4c], 0x335d3156
mov dword [esp + 0x50], 0x375b3546
mov dword [esp + 0x54], 0x3b5e3915
mov dword [esp + 0x58], 0x3f4a3d5d
mov dword [esp + 0x5c], 0x43794121
mov dword [esp + 0x60], 0x47244564
mov dword [esp + 0x64], 0x4b3f4927
mov dword [esp + 0x68], 0x4f2a4d22
mov dword [esp + 0x6c], 0x53205131
mov dword [esp + 0x70], 0x576b552d
mov dword [esp + 0x74], 0x5b3f593a
mov dword [esp + 0x78], 0x5f6b5d64
mov dword [esp + 0x7c], 0x63076104
mov dword [esp + 0x80], 0x670f6551
mov dword [esp + 0x84], 0x6b0e6918
mov dword [esp + 0x88], 0x6f0d6d03
mov dword [esp + 0x8c], 0x73177119
mov dword [esp + 0x90], 0x77047506
mov dword [esp + 0x94], 0x7b4b791d
mov dword [esp + 0x98], 0x7f747d71
mov word [esp + 0x9c], 0x8180
mov byte [esp + 0xa0], 0
mov word [esp + 0x9e], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x84
ja 0x40ddfd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx ebp, byte [esp + edx + 0x1c]
mov edx, ecx
xor edx, 0x51c1fb00
lea ebx, [ecx + ecx]
and ebx, 0xa383f600
mov eax, ebx
and eax, edx
xor ebx, edx
lea edx, [ebx + eax*2]
and ecx, ebp
or edx, ebp
add edx, ecx
mov eax, edx
xor eax, ecx
mov ebx, ecx
not ebx
and edx, ebx
add edx, edx
sub edx, eax
xor ecx, edx
and edx, ebx
add edx, edx
sub edx, ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
mov ecx, dword [esp]
mov byte [esp + ecx + 0x1c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x85
jb 0x40dda0
mov dword [esp + 8], 0x73137127
mov dword [esp + 0xc], 0x6ff76dfc
mov dword [esp + 0x10], 0x6968
mov byte [esp + 0x14], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x40de6c
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0x194bcec
and eax, 0x194bcec
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0x64
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x40de30
push 0x493e0
push dword [esp + 0x1c]
push edi
push 0
push 0
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004102a0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.0040c6a0
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
jmp 0x40dea8
mov bl, 1
mov eax, ebx
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret