Function at 0x40dbd0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xac
cmp dword [ecx + 0x20], 0
je 0x40e170
mov esi, ecx
movzx eax, byte [ecx]
lea ecx, [esp + 0xa8]
push 0xa
push 4
push ecx
push eax
call fcn.0040e180
add esp, 0x10
mov ebx, eax
lea eax, [esi + 0x10]
push eax
call fcn.0040a770
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 + 0x1c], ecx
lea eax, [ecx + 0x400]
push eax
call fcn.0040c8e0
add esp, 4
mov edi, eax
mov dword [esp + 0x20], 0xf5859684
mov byte [esp + 0x24], 0x10
mov dword [esp + 0x25], 0
mov word [esp + 0x29], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xa
ja 0x40dca3
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
mov edx, eax
xor edx, 0x4418bfc5
and eax, 0xc418bfc5
lea eax, [edx + eax*2]
lea edx, [eax + ecx]
not ecx
or eax, ecx
sub ecx, eax
lea eax, [edx + ecx*2]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x27
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xb
jb 0x40dc60
lea eax, [esp + 0x20]
mov ecx, esi
push 0x44cff8
push eax
push edi
call fcn.0040d530
mov dword [esp], 0x73ded8c0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 3
ja 0x40dd16
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx]
mov edx, eax
xor edx, 0x51804714
mov ebp, eax
xor ebp, 0x2e7fb8eb
or eax, 0x51804714
and eax, ebp
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
add al, 0x9c
mov ecx, dword [esp + 8]
mov byte [esp + ecx], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 4
jb 0x40dcd0
mov eax, esp
mov ecx, esi
push ebx
push eax
push edi
call fcn.0040d530
mov eax, dword [str.BVnUqo___BrunoAgazzi]
mov dword [esp + 0x20], 0x8f2a3034
mov word [esp + 0x24], 0
mov byte [esp + 0x26], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 6
ja 0x40dd94
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x20]
mov ebx, ecx
xor ebx, 0x4fe25ee2
and ecx, 0xcfe25ee2
lea ecx, [ebx + ecx*2]
xor ecx, edx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
mov edx, ecx
xor edx, 0x6a
and ecx, 0x15
add ecx, ecx
sub ecx, edx
mov edx, dword [esp]
mov byte [esp + edx + 0x20], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 7
jb 0x40dd50
mov ecx, esi
push eax
lea eax, [esp + 0x24]
push eax
push edi
call fcn.0040d530
mov dword [esp + 0x20], 0x35383001
mov dword [esp + 0x24], 0x83d3429
mov dword [esp + 0x28], 0x3a3b3c09
mov byte [esp + 0x2c], 0x80
mov dword [esp + 0x2d], 0
mov word [esp + 0x31], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x12
ja 0x40de0e
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
add eax, 0x74c97be3
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x91
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x13
jb 0x40dde0
mov dword [esp + 8], 0x334e5251
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x40de83
nop
nop
nop
nop
nop
nop
nop
nop
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, 0xa89462b4
and eax, 0x289462b4
lea eax, [edx + eax*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp], edx
mov eax, dword [esp]
add al, 0x7c
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 7
jb 0x40de40
lea ebx, [esp + 8]
mov ecx, esi
lea eax, [esp + 0x20]
push eax
push ebx
push edi
call fcn.0040d530
mov dword [esp + 0x20], 0x4a424042
mov byte [esp + 0x24], 0xf4
mov word [esp + 0x25], 0
mov byte [esp + 0x27], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x40df0e
nop
nop
nop
mov ecx, dword [esp]
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x20]
mov edx, ecx
not edx
or edx, 0x2c5fb6d6
add edx, ecx
xor ecx, 0x2c5fb6d6
lea ebp, [ecx + edx*2]
lea ecx, [ecx + edx*2]
add ecx, 2
lea edx, [eax + ebp]
add edx, 2
and ecx, eax
add ecx, ecx
sub edx, ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0xd2
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x40dec0
mov ecx, esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push edi
call fcn.0040d7e0
mov eax, dword [esi + 0x60]
mov dword [esp + 0x20], 0x13a51153
mov dword [esp + 0x24], 0x6fe26dda
mov dword [esp + 0x28], 0x6bdc69d5
mov dword [esp + 0x2c], 0x671365e8
mov dword [esp + 0x30], 0x63eb61cc
mov dword [esp + 0x34], 0x7fc37dcc
mov dword [esp + 0x38], 0x7b1a7932
mov dword [esp + 0x3c], 0x77fb75c1
mov dword [esp + 0x40], 0x73fe71c4
mov dword [esp + 0x44], 0x4ffe4df5
mov dword [esp + 0x48], 0x4bf849e9
mov dword [esp + 0x4c], 0x473145c8
mov dword [esp + 0x50], 0x43f541fe
mov dword [esp + 0x54], 0x5feb5dee
mov dword [esp + 0x58], 0x5be6592d
mov dword [esp + 0x5c], 0x57da55f5
mov dword [esp + 0x60], 0x531951f1
mov dword [esp + 0x64], 0xaf0cadcc
mov dword [esp + 0x68], 0xab27a91f
mov dword [esp + 0x6c], 0xa71aa512
mov dword [esp + 0x70], 0xa310a101
mov dword [esp + 0x74], 0xbffbbd35
mov dword [esp + 0x78], 0xbb07b91a
mov dword [esp + 0x7c], 0xb7fbb5fc
mov dword [esp + 0x80], 0xb30fb10c
mov dword [esp + 0x84], 0x8f378dc1
mov dword [esp + 0x88], 0x8b368938
mov dword [esp + 0x8c], 0x87258533
mov dword [esp + 0x90], 0x833f8139
mov dword [esp + 0x94], 0x9f2c9d2e
mov dword [esp + 0x98], 0x9beb9925
mov dword [esp + 0x9c], 0x978c9581
mov word [esp + 0xa0], 0x9190
mov dword [esp + 0xa2], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x85
ja 0x40e0b4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x20]
mov ebp, ecx
xor ebp, 0xc81ae2bc
and ecx, 0xc81ae2bc
lea ecx, [ecx*2]
add ecx, ebp
xor ecx, edx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
add cl, 0x54
mov edx, dword [esp]
mov byte [esp + edx + 0x20], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x86
jb 0x40e070
mov dword [esp + 8], 0x117d1f4d
mov dword [esp + 0xc], 0x15891380
mov word [esp + 0x10], 0x1714
mov dword [esp + 0x12], 0
mov byte [esp + 0x16], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xe
ja 0x40e13d
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 8]
mov ebp, ecx
xor ebp, 0x6001805
and ecx, 0x6001805
lea ecx, [ecx*2]
add ecx, ebp
xor ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp]
mov edx, ecx
xor edx, 0x19
and ecx, 0x66
add ecx, ecx
sub ecx, edx
mov edx, dword [esp + 4]
mov byte [esp + edx + 8], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xf
jb 0x40e0f0
push 0x493e0
push eax
push edi
push 0
push 0
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.00410690
add esp, 0x1c
mov ebx, eax
push edi
call fcn.0040c8f0
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
jmp 0x40e172
mov bl, 1
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret