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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf0
cmp dword [ecx + 0x20], 0
je 0x40a541
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x40a548
cmp al, 0x64
jb 0x40a557
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
movzx edx, cx
shr edx, 0xc
imul ecx, edx, 0x64
sub al, cl
movzx eax, al
movzx eax, word [eax + eax + 0x43f528]
mov word [esp + 0xd], ax
mov ecx, 1
mov eax, edx
jmp 0x40a560
mov bl, 1
jmp 0x40ab67
lea eax, [esp + 0xe]
mov dword [esp + 0x2c], eax
mov byte [esp + 0xe], 0x30
jmp 0x40a5a2
mov ecx, 3
cmp al, 9
ja 0x40a577
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea edx, [esp + ecx]
add edx, 0xb
mov dword [esp + 0x2c], edx
mov byte [esp + ecx + 0xb], al
jmp 0x40a5a2
mov ecx, eax
and ecx, 2
mov edx, eax
or eax, 2
imul eax, ecx
xor ecx, 2
and edx, 0x7d
imul edx, ecx
movzx eax, word [edx + eax + 0x43f528]
lea ecx, [esp + 0xd]
mov dword [esp + 0x2c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00407270
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xc0], eax
lea ebx, [esp + 0xcb]
push ebx
call fcn.00433cd0
add esp, 4
mov dword [esp + 0xc4], edi
lea eax, [edi + 0x400]
push eax
call fcn.004093a0
add esp, 4
mov edi, eax
mov dword [esp + 0x30], 0x171b1604
mov byte [esp + 0x34], 0x70
mov dword [esp + 0x35], 0
mov word [esp + 0x39], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x40a66a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx edx, byte [esp + ecx + 0x30]
lea ecx, [eax + edx]
add ecx, 0x4983226e
add eax, 0x4983226e
and eax, edx
add eax, eax
mov edx, ecx
not edx
and edx, eax
not eax
and eax, ecx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xfe
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x40a620
lea eax, [esp + 0x30]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.00409d30
mov dword [esp + 0x30], 0xb3080206
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov byte [esp + 0x3c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x40a6ec
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + 0x19]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0x99422619
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x51
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x40a6b0
mov ecx, esi
push dword [esp + 0x2c]
push ebx
push edi
call fcn.00409d30
mov eax, dword [str.xMnLq7__ult]
mov dword [esp + 0x30], 0xebb0aaaa
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3b], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xe
ja 0x40a772
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
lea ebx, [ecx + edx]
add ecx, 0xfd
and ecx, edx
add ecx, ecx
sub ebx, ecx
add ebx, 0xe8001cfd
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0x15
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xf
jb 0x40a730
mov ecx, esi
push eax
lea ebx, [esp + 0x34]
push ebx
push edi
call fcn.00409d30
mov dword [esp + 0x30], 0x1760285b
mov dword [esp + 0x34], 0x60131c13
mov dword [esp + 0x38], 0x1e111463
mov byte [esp + 0x3c], 0xf8
mov dword [esp + 0x3d], 0
mov word [esp + 0x41], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x12
ja 0x40a7ff
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + 0x6f94039e]
and edx, ecx
add eax, ecx
add eax, 0x6f94039e
add edx, edx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xae
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x13
jb 0x40a7c0
mov dword [esp + 0x10], 0x73c6cacd
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1b], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0xe
ja 0x40a86b
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0x39c9ad4e]
add eax, 0x4e
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0xde
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0xf
jb 0x40a830
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.00409d30
mov dword [esp + 0x30], 0x2820222c
mov byte [esp + 0x34], 0xb2
mov dword [esp + 0x35], 0
mov dword [esp + 0x39], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x40a8fc
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + 0x22f74be9]
add eax, 0xe9
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov ecx, eax
or ecx, 0xa0
and eax, 0xa0
add eax, ecx
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x40a8b0
mov ecx, esi
push dword [esp + 0xc4]
push dword [esp + 0xc4]
push ebx
push edi
call fcn.0040a000
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], 0x836d8143
mov dword [esp + 0x34], 0x8772856a
mov dword [esp + 0x38], 0x8b64896d
mov dword [esp + 0x3c], 0x8fa38d78
mov dword [esp + 0x40], 0x936b9144
mov dword [esp + 0x44], 0x97739564
mov dword [esp + 0x48], 0x9bba99a2
mov dword [esp + 0x4c], 0x9f6b9d71
mov dword [esp + 0x50], 0xa356a14c
mov dword [esp + 0x54], 0xa756a54d
mov dword [esp + 0x58], 0xab58a949
mov dword [esp + 0x5c], 0xaf81ad58
mov dword [esp + 0x60], 0xb35db156
mov dword [esp + 0x64], 0xb75bb546
mov dword [esp + 0x68], 0xbb5eb995
mov dword [esp + 0x6c], 0xbf4abd5d
mov dword [esp + 0x70], 0x437941a1
mov dword [esp + 0x74], 0x47a44564
mov dword [esp + 0x78], 0x4bbf49a7
mov dword [esp + 0x7c], 0x4faa4da2
mov dword [esp + 0x80], 0x53a051b1
mov dword [esp + 0x84], 0x576b55ad
mov dword [esp + 0x88], 0x5bbf59ba
mov dword [esp + 0x8c], 0x5f6b5d64
mov dword [esp + 0x90], 0x63876184
mov dword [esp + 0x94], 0x678f6551
mov dword [esp + 0x98], 0x6b8e6998
mov dword [esp + 0x9c], 0x6f8d6d83
mov dword [esp + 0xa0], 0x73977199
mov dword [esp + 0xa4], 0x77847586
mov dword [esp + 0xa8], 0x7b4b799d
mov dword [esp + 0xac], 0x7f747d71
mov word [esp + 0xb0], 0x100
mov byte [esp + 0xba], 0
mov dword [esp + 0xb6], 0
mov dword [esp + 0xb2], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x8a
ja 0x40aab8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
add ecx, 0x7fab4c0
xor ecx, edx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
add cl, 0xc0
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x8b
jb 0x40aa80
mov dword [esp + 0x10], 0xfb5bf9d7
mov dword [esp + 0x14], 0xff67fd6a
mov word [esp + 0x18], 0xf1fe
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1d], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x10
ja 0x40ab32
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx + 0x10]
lea ebx, [ecx + edx]
add ebx, 0xc70419ff
add ecx, 0xc70419ff
and ecx, edx
add ecx, ecx
sub ebx, ecx
mov dword [esp + 4], ebx
mov ecx, dword [esp + 4]
add cl, 7
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x11
jb 0x40aaf0
push 0x493e0
push eax
push edi
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040e480
add esp, 0x1c
mov ebx, eax
push edi
call fcn.004093b0
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret