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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xcc
cmp dword [ecx + 0x20], 0
je 0x40a549
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0x17], 0
test eax, eax
je 0x40a550
cmp al, 0x64
jb 0x40a55b
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*8]
shr edx, 0xc
imul ecx, edx, 0x64
sub al, cl
movzx eax, al
movzx eax, word [eax + eax + 0x43b318]
mov word [esp + 0x15], ax
mov ecx, 0xfffffffd
mov eax, edx
jmp 0x40a564
mov bl, 1
jmp 0x40aab4
lea ebx, [esp + 0x16]
mov byte [esp + 0x16], 0x30
jmp 0x40a58a
mov ecx, 0xffffffff
cmp al, 9
ja 0x40a579
lea edx, [esp + 0x18]
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea ebx, [edx + ecx]
dec ebx
mov byte [esp + ecx + 0x17], al
jmp 0x40a58a
movzx eax, word [eax + eax + 0x43b318]
lea ebx, [esp + 0x15]
mov word [esp + 0x15], ax
lea eax, [esi + 0x10]
push eax
call fcn.00407140
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x18], eax
lea ebp, [esp + 0xab]
push ebp
call fcn.00430d50
add esp, 4
mov dword [esp + 0x1c], edi
lea eax, [edi + 0x400]
push eax
call fcn.004092e0
add esp, 4
mov edi, eax
mov dword [esp + 0x20], 0x353d0234
mov byte [esp + 0x24], 0x88
mov dword [esp + 0x25], 0
mov dword [esp + 0x28], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x40a62e
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 + 0x20]
add eax, 0x1465c3e3
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, 0xc
jb 0x40a600
lea eax, [esp + 0x20]
mov ecx, esi
push ebp
mov ebp, eax
push eax
push edi
call fcn.00409eb0
mov dword [esp], 0x51eae4fc
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 3
ja 0x40a69d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx]
lea edx, [eax + 0xed]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0xc21c4eed
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
add al, 0x5f
mov ecx, dword [esp + 8]
mov byte [esp + ecx], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 4
jb 0x40a660
mov eax, esp
mov ecx, esi
push ebx
push eax
push edi
call fcn.00409eb0
mov eax, dword [str.wxq2PX__Dolphin]
mov dword [esp + 0x20], 0x117a8480
mov word [esp + 0x24], 0
mov byte [esp + 0x26], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 6
ja 0x40a710
nop
nop
nop
nop
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]
add ecx, 0x852a7685
xor ecx, edx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
add cl, 0x67
mov edx, dword [esp]
mov byte [esp + edx + 0x20], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 7
jb 0x40a6e0
mov ecx, esi
push eax
push ebp
push edi
call fcn.00409eb0
mov dword [esp + 0x20], 0x15681061
mov dword [esp + 0x24], 0x780d7419
mov dword [esp + 0x28], 0xa0b0c79
mov byte [esp + 0x2c], 0xe0
mov word [esp + 0x2d], 0
mov byte [esp + 0x2f], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x40a799
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 + 0x20]
lea edx, [eax + ecx]
add eax, 0x2b
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0x12ea282b
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0x29
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x40a760
mov dword [esp + 8], 0xc9465653
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x40a7fe
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
lea edx, [eax + ecx]
add edx, 0xe22b86b3
add eax, 0xe22b86b3
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp], edx
mov eax, dword [esp]
add al, 0x81
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 8
jb 0x40a7c0
lea eax, [esp + 8]
mov ecx, esi
push ebp
push eax
push edi
call fcn.00409eb0
mov dword [esp + 0x20], 0x4246444e
mov byte [esp + 0x24], 0x28
mov dword [esp + 0x25], 0
mov dword [esp + 0x28], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x40a86e
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
add eax, 0xa3d86fb7
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x6d
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x40a840
mov ecx, esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebp
push edi
call fcn.0040a110
mov eax, dword [esi + 0x60]
mov dword [esp + 0x20], 0x138511d3
mov dword [esp + 0x24], 0x1f821d8a
mov dword [esp + 0x28], 0x1b8c19f5
mov dword [esp + 0x2c], 0x7d30598
mov dword [esp + 0x30], 0x39b01fc
mov dword [esp + 0x34], 0xfe30d9c
mov dword [esp + 0x38], 0xb2a09d2
mov dword [esp + 0x3c], 0x37ab35a1
mov dword [esp + 0x40], 0x33ae31a4
mov dword [esp + 0x44], 0x3fae3dd5
mov dword [esp + 0x48], 0x3ba839d9
mov dword [esp + 0x4c], 0x27f125b8
mov dword [esp + 0x50], 0x23b521ce
mov dword [esp + 0x54], 0x2fbb2dbe
mov dword [esp + 0x58], 0x2bc629fd
mov dword [esp + 0x5c], 0xd74ad535
mov dword [esp + 0x60], 0xd309d131
mov dword [esp + 0x64], 0xdf3cddfc
mov dword [esp + 0x68], 0xdb47d94f
mov dword [esp + 0x6c], 0xc72ac552
mov dword [esp + 0x70], 0xc350c121
mov dword [esp + 0x74], 0xcf0bcd55
mov dword [esp + 0x78], 0xcb27c92a
mov dword [esp + 0x7c], 0xf72bf52c
mov dword [esp + 0x80], 0xf31ff11c
mov dword [esp + 0x84], 0xff17fd21
mov dword [esp + 0x88], 0xfb16f968
mov dword [esp + 0x8c], 0xe705e573
mov dword [esp + 0x90], 0xe30fe109
mov dword [esp + 0x94], 0xef7ced7e
mov dword [esp + 0x98], 0xeb3be905
mov dword [esp + 0x9c], 0x979c95a1
mov word [esp + 0xa0], 0x9190
mov byte [esp + 0xa4], 0
mov word [esp + 0xa2], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x84
ja 0x40aa10
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x20]
lea ebx, [ecx + edx]
add ecx, 0xc4
and ecx, edx
add ecx, ecx
sub ebx, ecx
add ebx, 0xdade97c4
mov dword [esp + 8], ebx
mov ecx, dword [esp + 8]
add cl, 0x2c
mov edx, dword [esp]
mov byte [esp + edx + 0x20], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x85
jb 0x40a9d0
mov dword [esp + 8], 0x33533107
mov dword [esp + 0xc], 0x3f573d4c
mov dword [esp + 0x10], 0x3938
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xb
ja 0x40aa83
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 8]
lea ebx, [ecx + edx]
add ebx, 0x5eb7e1b4
add ecx, 0x5eb7e1b4
not edx
or ecx, edx
sub edx, ecx
lea ecx, [ebx + edx*2]
mov dword [esp], ecx
mov ecx, dword [esp]
add cl, 0x7c
mov edx, dword [esp + 4]
mov byte [esp + edx + 8], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xc
jb 0x40aa40
push 0x493e0
push eax
push edi
push 0
push 0
push ebp
lea eax, [esp + 0x20]
push eax
call fcn.0040c8e0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.004092f0
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
add esp, 0xcc
pop esi
pop edi
pop ebx
pop ebp
ret