Function at 0x40dcd0
Capabilities:
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 0x40e1a1
mov esi, ecx
movzx eax, byte [ecx]
lea ecx, [esp + 0xa4]
push 0xa
push 4
push ecx
push eax
call fcn.0040e1b0
add esp, 0x10
mov dword [esp], eax
lea eax, [esi + 0x10]
push eax
call fcn.0040a900
add esp, 4
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x18], eax
mov dword [esp + 4], ecx
lea eax, [ecx + 0x400]
push eax
call fcn.0040ca00
add esp, 4
mov edi, eax
mov dword [esp + 0x1c], 0xcdc5f2cc
mov byte [esp + 0x20], 0x68
mov dword [esp + 0x21], 0
mov dword [esp + 0x24], 0
mov eax, 0xcde72597
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x3218da85]
xor ecx, eax
mov edx, ecx
and edx, 0xc
xor ecx, 0xc
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax + 0x3218da85], cl
inc eax
cmp eax, 0xcde725a3
jne 0x40dd60
lea ebp, [esp + 0x1c]
mov ecx, esi
push 0x450c0c
push ebp
push edi
call fcn.0040d710
mov dword [esp + 0x1c], 0x21babcb4
mov word [esp + 0x20], 0
mov eax, 0x79
nop
nop
nop
nop
movzx edx, byte [esp + eax - 0x5d]
lea ecx, [eax - 0x3f295200]
mov ebx, eax
and ebx, edx
or ecx, edx
xor ecx, ebx
add ecx, 0x3bce97a2
mov edx, ecx
xor edx, 0x7ffffffe
mov ebx, ecx
or ebx, 1
and ebx, edx
add ebx, ebx
mov edx, ebx
and edx, ecx
xor ebx, ecx
xor ebx, 1
lea ecx, [ebx + edx*2]
mov byte [esp + eax - 0x5d], cl
inc eax
cmp eax, 0x7f
jne 0x40ddb0
mov ecx, esi
push dword [esp]
push ebp
mov dword [esp + 8], edi
push edi
call fcn.0040d710
mov eax, dword [str.k99eRC__Lyla10]
mov dword [esp + 0x1c], 0x970a000c
mov word [esp + 0x20], 0
mov byte [esp + 0x22], 0
mov ecx, 0x2048ab59
nop
nop
movzx ebx, byte [ebp]
lea edx, [ebx + ebx]
not edx
add edx, ebx
lea edi, [ecx - 0x2048ab00]
and edi, ebx
not ebx
or ebx, edx
not ebx
and ebx, 0xffffffaf
or ebx, ecx
mov edx, edi
not edx
lea edx, [edi + edx*2]
inc edx
and edx, ebx
mov edi, 0xa16b58c0
sub edi, edx
mov edx, edi
and edx, 1
xor edi, 1
lea edx, [edi + edx*2]
mov byte [ebp], dl
inc ebp
dec ecx
cmp ecx, 0x2048ab52
jne 0x40de20
lea ebx, [esp + 0x1c]
mov ecx, esi
push eax
push ebx
push dword [esp + 8]
call fcn.0040d710
mov dword [esp + 0x1c], 0x3f043c03
mov dword [esp + 0x20], 0xc33083b
mov dword [esp + 0x24], 0x3635380b
mov byte [esp + 0x28], 0x84
mov dword [esp + 0x29], 0
mov dword [esp + 0x2c], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x24
xor cl, byte [esp + eax + 0x1c]
add cl, 0x4c
mov byte [esp + eax + 0x1c], cl
inc eax
cmp eax, 0x14
jne 0x40deb0
mov dword [esp + 8], 0x691e0e03
mov byte [esp + 0xc], 0
mov eax, 0xe7
mov ecx, 0x9045c218
nop
nop
nop
movzx edi, byte [esp + eax - 0xdf]
mov edx, eax
xor edx, ecx
and edx, edi
xor edx, ecx
not edx
mov edi, edx
and edi, 0x7c
or edx, 0x7c
add edx, edi
inc dl
mov byte [esp + eax - 0xdf], dl
inc eax
dec ecx
cmp eax, 0xec
jne 0x40dee0
lea eax, [esp + 8]
mov ecx, esi
push ebx
push eax
mov edi, dword [esp + 8]
push edi
call fcn.0040d710
mov dword [esp + 0x1c], 0x5662646a
mov byte [esp + 0x20], 0xb0
mov dword [esp + 0x21], 0
mov byte [esp + 0x25], 0
mov eax, 0x2b8fc7af
nop
movzx ecx, byte [esp + eax - 0x2b8fc793]
lea edx, [eax - 0x2b8fc752]
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
add cl, 0xdc
mov byte [esp + eax - 0x2b8fc793], cl
inc eax
cmp eax, 0x2b8fc7b9
jne 0x40df40
mov ecx, esi
push dword [esp + 4]
push dword [esp + 0x1c]
push ebx
push edi
call fcn.0040d930
mov eax, dword [esi + 0x60]
mov dword [esp + 4], eax
mov dword [esp + 0x1c], 0x3ed01c3
mov dword [esp + 0x20], 0x7f205ea
mov dword [esp + 0x24], 0xbe409ed
mov dword [esp + 0x28], 0xf230df8
mov dword [esp + 0x2c], 0x13eb11c4
mov dword [esp + 0x30], 0x17f315e4
mov dword [esp + 0x34], 0x1b3a1922
mov dword [esp + 0x38], 0x1feb1df1
mov dword [esp + 0x3c], 0x23d621cc
mov dword [esp + 0x40], 0x27d625cd
mov dword [esp + 0x44], 0x2bd829c9
mov dword [esp + 0x48], 0x2f012dd8
mov dword [esp + 0x4c], 0x33dd31d6
mov dword [esp + 0x50], 0x37db35c6
mov dword [esp + 0x54], 0x3bde3915
mov dword [esp + 0x58], 0x3fca3ddd
mov dword [esp + 0x5c], 0xc3f9c121
mov dword [esp + 0x60], 0xc724c5e4
mov dword [esp + 0x64], 0xcb3fc927
mov dword [esp + 0x68], 0xcf2acd22
mov dword [esp + 0x6c], 0xd320d131
mov dword [esp + 0x70], 0xd7ebd52d
mov dword [esp + 0x74], 0xdb3fd93a
mov dword [esp + 0x78], 0xdfebdde4
mov dword [esp + 0x7c], 0xe307e104
mov dword [esp + 0x80], 0xe70fe5d1
mov dword [esp + 0x84], 0xeb0ee918
mov dword [esp + 0x88], 0xef0ded03
mov dword [esp + 0x8c], 0xf317f119
mov dword [esp + 0x90], 0xf704f506
mov dword [esp + 0x94], 0xfbcbf91d
mov dword [esp + 0x98], 0xfff4fdf1
mov word [esp + 0x9c], 0x8180
mov byte [esp + 0xa2], 0
mov dword [esp + 0x9e], 0
xor ebp, ebp
nop
movzx edx, byte [esp + ebp + 0x1c]
lea ebx, [ebp - 0x46879940]
and ebx, edx
mov eax, ebx
or al, 0xfd
inc al
mov ecx, ebx
and cl, 0xfd
mul cl
mov ecx, eax
add cl, dl
mov eax, ebx
shr al, 1
and al, 1
or bl, 2
mul bl
add al, al
sub cl, al
movzx eax, cl
add eax, ebp
mov byte [esp + ebp + 0x1c], al
inc ebp
cmp ebp, 0x87
jne 0x40e0c0
mov dword [esp + 8], 0x79157b2d
mov dword [esp + 0xc], 0x65f167e8
mov word [esp + 0x10], 0x6364
mov dword [esp + 0x12], 0
mov word [esp + 0x16], 0
mov eax, 0x1f22a6eb
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x1f22a6e3]
lea edx, [eax - 0x1f22a600]
and edx, ecx
add ecx, eax
add edx, edx
mov edi, ecx
sub edi, edx
and ecx, 1
xor edi, 1
lea ecx, [edi + ecx*2]
add cl, 0x68
mov byte [esp + eax - 0x1f22a6e3], cl
inc eax
cmp eax, 0x1f22a6fb
jne 0x40e130
push 0x493e0
push dword [esp + 8]
mov edi, dword [esp + 8]
push edi
push 0
push 0
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00410560
add esp, 0x1c
mov ebx, eax
push edi
call fcn.0040ca10
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
jmp 0x40e1a3
mov bl, 1
mov eax, ebx
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret