Function at 0x40dbf0
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, 0x114
cmp dword [ecx + 0x20], 0
je 0x40e187
mov esi, ecx
lea eax, [ecx + 0x10]
push eax
call fcn.0040a8b0
add esp, 4
mov eax, dword [esi + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x14], eax
mov dword [esp + 0x78], 0x74f40908
mov word [esp + 0x7c], 0
mov byte [esp + 0x7e], 0
mov eax, 0xa1c9677e
mov ecx, 0x1e369881
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edi, [ecx - 0x1e369800]
mov edx, edi
mov ebp, ecx
and ebp, 0x16208096
mov ebx, eax
and ebx, 0x80c12169
or ebx, ebp
mov ebp, eax
and ebp, 0x60
and edi, 0x9f
or edi, ebp
xor edi, ebx
xor ebx, 0x96
or ebx, eax
xor edi, 0xf6
and edi, ebx
movzx ebx, byte [esp + eax + 0x5e3698fa]
or edx, ebx
not ebx
or ebx, edi
and ebx, edx
mov dl, 0x89
sub dl, bl
mov byte [esp + eax + 0x5e3698fa], dl
inc eax
dec ecx
cmp eax, 0xa1c96785
jne 0x40dc50
mov eax, dword [esp + 0x78]
push dword [eax + 0x14]
call fcn.0040d130
add esp, 4
call fcn.0040d140
mov ebx, eax
mov dword [esp + 8], eax
and ebx, 0xf
mov edi, 0xfffffff0
mov ebp, 0x38e38e39
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.0040d140
mov ecx, eax
imul ebp
mov eax, edx
shr eax, 0x1f
sar edx, 3
add edx, eax
shl edx, 2
lea eax, [edx + edx*8]
neg eax
movzx eax, byte [ecx + eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov byte [esi + edi + 0x70], al
inc edi
cmp ebx, edi
jne 0x40dce0
mov byte [esi + edi + 0x70], 0
movzx eax, byte [esi]
imul ecx, eax, 0xcd
shr ecx, 0xa
and ecx, 0xfffffffe
lea ecx, [ecx + ecx*4]
sub al, cl
movzx eax, al
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov byte [esp + 6], al
mov byte [esp + 7], 0
mov eax, dword [esp + 0xc]
add eax, 0x400
push eax
call fcn.0040ca10
add esp, 4
mov dword [esp], eax
mov dword [esp + 0x78], 0xd5e516e4
mov byte [esp + 0x7c], 0xb0
mov dword [esp + 0x7d], 0
mov dword [esp + 0x80], 0
mov eax, 0xf01f491d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax + 0xfe0b75b]
xor edi, eax
mov edx, edi
and edx, 0x4003006c
mov ecx, edi
and ecx, 2
mov ebp, ecx
xor ebp, 2
imul ebp, edx
or edx, 2
imul edx, ecx
mov ecx, edi
xor ecx, 0x6e
add ecx, ebp
add ecx, edx
and edi, 1
or ecx, 1
add ecx, edi
mov byte [esp + eax + 0xfe0b75b], cl
inc eax
cmp eax, 0xf01f4929
jne 0x40dd80
lea edi, [esp + 0x78]
mov ecx, esi
push 0x448b2c
push edi
push dword [esp + 8]
call fcn.0040d500
mov dword [esp + 0x78], 0x315a444c
mov word [esp + 0x7c], 0
mov byte [esp + 0x7e], 0
xor eax, eax
lea ecx, [eax + eax]
mov ebp, ecx
and ebp, 0xa
mov edx, eax
xor edx, 0x35
add edx, ebp
xor dl, byte [esp + eax + 0x78]
add dl, 0xf7
mov byte [esp + eax + 0x78], dl
and ecx, 2
xor eax, 1
add eax, ecx
cmp eax, 7
jb 0x40ddf0
lea eax, [esp + 6]
mov ecx, esi
push eax
push edi
push dword [esp + 8]
call fcn.0040d500
mov eax, dword [str.tLYMe5__1]
mov dword [esp + 0x10], eax
mov dword [esp + 0x78], 0x8326282c
mov word [esp + 0x7c], 0
mov byte [esp + 0x7e], 0
xor ecx, ecx
mov edx, 0x9f
nop
nop
nop
nop
movzx eax, byte [esp + ecx + 0x78]
mov ebp, eax
not ebp
or ebp, edx
or eax, ecx
or eax, 0x60
and eax, ebp
add al, 0x20
mov byte [esp + ecx + 0x78], al
inc ecx
dec edx
cmp ecx, 7
jne 0x40de50
mov ecx, esi
push dword [esp + 0x10]
push edi
push dword [esp + 8]
call fcn.0040d500
mov dword [esp + 0x78], 0x2b3c2c3f
mov dword [esp + 0x7c], 0x3427302f
mov dword [esp + 0x80], 0x223d2037
mov byte [esp + 0x84], 0x84
mov dword [esp + 0x85], 0
xor eax, eax
nop
movzx edx, byte [esp + eax + 0x78]
mov ecx, 0xe1ffda5d
sub ecx, eax
or ecx, edx
mov ebp, 0x5d
sub ebp, eax
and ebp, edx
not ecx
or ecx, ebp
add ecx, 0x69ff43d5
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov byte [esp + eax + 0x78], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 0x11
jb 0x40deb0
mov dword [esp + 0x18], 0xcf5a6e69
mov byte [esp + 0x1c], 0
xor eax, eax
nop
lea ecx, [eax + eax]
mov edx, ecx
and edx, 4
mov ebp, edx
and ebp, eax
xor edx, eax
lea edx, [edx + ebp*2]
xor dl, byte [esp + eax + 0x18]
xor dl, 0x32
add dl, 6
mov byte [esp + eax + 0x18], dl
and ecx, 2
xor eax, 1
add eax, ecx
cmp eax, 5
jb 0x40df00
lea eax, [esp + 0x18]
mov ecx, esi
push edi
push eax
push dword [esp + 8]
call fcn.0040d500
mov dword [esp + 0x78], 0x92aeac96
mov byte [esp + 0x7c], 0x38
mov dword [esp + 0x7d], 0
mov dword [esp + 0x80], 0
mov eax, 0xfecbcb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0xfecb53]
xor ecx, eax
mov edx, ecx
and edx, 8
xor ecx, 8
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax - 0xfecb53], cl
inc eax
cmp eax, 0xfecbd7
jne 0x40df70
mov ecx, esi
push dword [esp + 0xc]
push dword [esp + 0x18]
push edi
push dword [esp + 0xc]
call fcn.0040d770
mov dword [esp + 0x18], 0xf365f133
mov dword [esp + 0x1c], 0xef62ed7a
mov dword [esp + 0x20], 0xeb7ce975
mov dword [esp + 0x24], 0xe733e568
mov dword [esp + 0x28], 0xe36be10c
mov dword [esp + 0x2c], 0x9f039d0c
mov dword [esp + 0x30], 0x9bba9952
mov dword [esp + 0x34], 0x971b9501
mov dword [esp + 0x38], 0x931e9104
mov dword [esp + 0x3c], 0x8f1e8d15
mov dword [esp + 0x40], 0x8b188969
mov dword [esp + 0x44], 0x87518508
mov dword [esp + 0x48], 0x8315811e
mov dword [esp + 0x4c], 0xbf2bbd2e
mov dword [esp + 0x50], 0xbb26b96d
mov dword [esp + 0x54], 0xb73ab555
mov dword [esp + 0x58], 0xb379b151
mov dword [esp + 0x5c], 0xaf4cad8c
mov dword [esp + 0x60], 0xab27a93f
mov dword [esp + 0x64], 0xa73aa532
mov dword [esp + 0x68], 0xa330a141
mov dword [esp + 0x6c], 0x5f9b5dd5
mov word [esp + 0x70], 0x5958
mov byte [esp + 0x74], 0
mov word [esp + 0x72], 0
xor eax, eax
nop
movzx ecx, byte [esp + eax + 0x18]
mov edx, 0x53
sub edx, eax
lea ebp, [eax + 0x7acb12ac]
or ebp, ecx
not ecx
or ecx, edx
and ecx, ebp
mov edx, 0x5c
sub edx, ecx
not ecx
and ecx, 1
or edx, 1
sub ecx, edx
mov byte [esp + eax + 0x18], cl
add eax, 0x5fd62ed3
mov ecx, eax
and ecx, 0x12e
xor eax, 0xa029d12e
lea eax, [eax + ecx*2]
cmp eax, 0x5d
jb 0x40e070
movzx eax, word [esp + 0x18]
test ax, ax
je 0x40e0e1
lea edi, [esp + 0x78]
lea ecx, [esp + 0x1a]
nop
nop
nop
nop
nop
mov word [edi], ax
add edi, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e0d0
mov word [edi], 0
mov eax, dword [esp + 8]
and eax, 7
mov dword [esp + 8], eax
sub ebx, eax
lea edx, [ebx*2 + 0x20]
xor eax, eax
xor ecx, ecx
nop
nop
movsx ebp, byte [esi + ecx + 0x60]
mov word [edi + eax], bp
movsx ebp, byte [esi + ecx + 0x61]
mov word [edi + eax + 2], bp
movsx ebp, byte [esi + ecx + 0x62]
mov word [edi + eax + 4], bp
movsx ebp, byte [esi + ecx + 0x63]
mov word [edi + eax + 6], bp
movsx ebp, byte [esi + ecx + 0x64]
mov word [edi + eax + 8], bp
movsx ebp, byte [esi + ecx + 0x65]
mov word [edi + eax + 0xa], bp
movsx ebp, byte [esi + ecx + 0x66]
mov word [edi + eax + 0xc], bp
movsx ebp, byte [esi + ecx + 0x67]
mov word [edi + eax + 0xe], bp
add ecx, 8
add eax, 0x10
cmp edx, eax
jne 0x40e100
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x40e18e
neg eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx edx, byte [esi + ecx + 0x60]
mov word [edi + ecx*2], dx
inc ecx
add eax, 0xfffffffe
dec ebx
jne 0x40e170
sub edi, eax
lea ecx, [edi - 2]
jmp 0x40e196
mov bl, 1
jmp 0x40e225
lea ecx, [edi + eax]
add ecx, 0xfffffffe
add edi, eax
mov word [edi], 0xd
mov dword [ecx + 4], 0xa
mov eax, dword [esi + 0x80]
mov dword [esp + 0x18], 0x9fff99ab
mov dword [esp + 0x1c], 0xa3cb9dec
mov dword [esp + 0x20], 0xa1a0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ecx
add dl, 0x9a
xor dl, byte [esp + ecx + 0x18]
add dl, 0xfe
mov byte [esp + ecx + 0x18], dl
inc ecx
cmp ecx, 0xc
jne 0x40e1d0
lea ecx, [esp + 0x78]
push 0x493e0
push eax
mov edi, dword [esp + 8]
push edi
push 0
push 0
push ecx
lea eax, [esp + 0x30]
push eax
call fcn.00410610
add esp, 0x1c
mov ebx, eax
push edi
call fcn.0040ca20
add esp, 4
mov eax, dword [esi + 0x80]
add dword [esi + 4], eax
mov dword [esi + 0x80], 0
mov eax, ebx
add esp, 0x114
pop esi
pop edi
pop ebx
pop ebp
ret