Function at 0x409c20
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, 0xfffffff0
sub esp, 0x110
cmp dword [ecx + 0x20], 0
je 0x40a30c
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x409c75
cmp al, 0x64
jb 0x409c84
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 + 0x4397f8]
mov word [esp + 0xd], ax
mov ecx, 1
mov eax, edx
jmp 0x409c8d
lea eax, [esp + 0xe]
mov dword [esp + 0x38], eax
mov byte [esp + 0xe], 0x30
jmp 0x409cb9
mov ecx, 3
cmp al, 9
ja 0x409ca4
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea edx, [esp + ecx]
add edx, 0xb
mov dword [esp + 0x38], edx
mov byte [esp + ecx + 0xb], al
jmp 0x409cb9
movzx eax, word [eax + eax + 0x4397f8]
lea ecx, [esp + 0xd]
mov dword [esp + 0x38], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406ae0
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xe4], eax
lea ebx, [esp + 0xeb]
push ebx
call fcn.0042ffd0
add esp, 4
mov dword [esp + 0x3c], edi
lea eax, [edi + 0x800]
push eax
call fcn.004089b0
add esp, 4
mov edi, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x57], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], 0x70bf608
mov byte [esp + 0x44], 0x64
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x1a
ja 0x409d88
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
movzx edx, byte [esp + eax + 0x40]
lea eax, [ecx + edx]
add eax, 0x31f3b6f0
add ecx, 0x31f3b6f0
and ecx, edx
add ecx, ecx
sub eax, ecx
add al, 0x70
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x40], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x1b
jb 0x409d50
lea eax, [esp + 0x40]
mov ecx, esi
push ebx
push eax
push edi
call fcn.00409490
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0xd37c7a46
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x13
ja 0x409e13
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
movzx ecx, byte [esp + ecx + 0x40]
lea edx, [eax + ecx]
add edx, 0xef0360e3
add eax, 0xef0360e3
and eax, ecx
add eax, eax
mov ecx, eax
not ecx
and ecx, edx
add ecx, ecx
xor eax, edx
sub ecx, eax
add cl, 0xcb
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x40], cl
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x14
jb 0x409dd0
mov ecx, esi
push dword [esp + 0x38]
lea eax, [esp + 0x44]
push eax
push edi
call fcn.00409490
mov eax, dword [str.WpRU8v__]
mov dword [esp + 0x40], 0x73d6c4c0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
cmp ecx, 0xf
ja 0x409e91
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
movzx ebx, byte [esp + ecx + 0x40]
lea ecx, [edx + ebx]
add edx, 0xe
and edx, ebx
add edx, edx
sub ecx, edx
add cl, 0xac
mov edx, dword [esp + 0x10]
mov byte [esp + edx + 0x40], cl
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, 0x10
jb 0x409e60
mov ecx, esi
push eax
lea eax, [esp + 0x44]
push eax
push edi
call fcn.00409490
mov dword [esp + 0x40], 0x8fa6aea3
mov dword [esp + 0x44], 0x9a939a8b
mov dword [esp + 0x48], 0x98958a9b
mov byte [esp + 0x4c], 0xe2
mov dword [esp + 0x4d], 0
mov word [esp + 0x51], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x12
ja 0x409f18
nop
nop
nop
nop
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
movzx edx, byte [esp + eax + 0x40]
lea eax, [ecx + edx]
add eax, 0x12f95edd
add ecx, 0x12f95edd
and ecx, edx
add ecx, ecx
sub eax, ecx
add al, 0xf5
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x40], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x13
jb 0x409ee0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x2bb6828d
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x17
ja 0x409fbb
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0x9901a8da
add eax, 0x9901a8da
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edx
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov ecx, eax
or ecx, 9
and eax, 9
add eax, ecx
inc al
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
mov eax, dword [esp + 8]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
cmp eax, 0x18
jb 0x409f60
lea edx, [esp + 0x10]
mov ecx, esi
lea eax, [esp + 0x40]
push eax
push edx
push edi
call fcn.00409490
mov dword [esp + 0x44], 0
mov word [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], 0x7c847a78
mov byte [esp + 0x44], 0x12
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x1d
ja 0x40a077
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
movzx edx, byte [esp + eax + 0x40]
lea ebx, [ecx + 3]
and ebx, edx
mov eax, 0x6e9e27fc
sub eax, ecx
or eax, edx
not eax
add eax, edx
sub eax, ebx
mov ecx, eax
or ecx, 0xea
and eax, 0xea
add eax, ecx
inc al
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x40], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x1e
jb 0x40a030
mov ecx, esi
push dword [esp + 0x3c]
push dword [esp + 0xe8]
lea eax, [esp + 0x48]
push eax
push edi
call fcn.00409770
mov eax, dword [esi + 0x60]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0xd341d11b
mov dword [esp + 0x44], 0xdf40dd44
mov dword [esp + 0x48], 0xdb4ed971
mov dword [esp + 0x4c], 0xc713c546
mov dword [esp + 0x50], 0xc35bc17a
mov dword [esp + 0x54], 0xcf63cd52
mov dword [esp + 0x58], 0xcb28c914
mov dword [esp + 0x5c], 0xb72bb55d
mov dword [esp + 0x60], 0xb32cb122
mov dword [esp + 0x64], 0xbf2cbd19
mov dword [esp + 0x68], 0xbb2ab91d
mov dword [esp + 0x6c], 0xa775a526
mov dword [esp + 0x70], 0xa331a108
mov dword [esp + 0x74], 0xaf3bad30
mov dword [esp + 0x78], 0xab04a979
mov dword [esp + 0x7c], 0x97089509
mov dword [esp + 0x80], 0x93559135
mov dword [esp + 0x84], 0x9f3e9d72
mov dword [esp + 0x88], 0x9b07990f
mov dword [esp + 0x8c], 0x8728850c
mov dword [esp + 0x90], 0x83128125
mov dword [esp + 0x94], 0x8f4b8d19
mov dword [esp + 0x98], 0x8b27892c
mov dword [esp + 0x9c], 0x77ab7552
mov dword [esp + 0xa0], 0x73df71da
mov dword [esp + 0xa4], 0x7fd77dad
mov dword [esp + 0xa8], 0x7bd479ee
mov dword [esp + 0xac], 0x67c965eb
mov dword [esp + 0xb0], 0x63cf61cd
mov dword [esp + 0xb4], 0x6ffe6df0
mov dword [esp + 0xb8], 0x6bbb69c1
mov dword [esp + 0xbc], 0x575e559d
mov word [esp + 0xc0], 0x5156
mov dword [esp + 0xd1], 0
mov dword [esp + 0xce], 0
mov dword [esp + 0xca], 0
mov dword [esp + 0xc6], 0
mov dword [esp + 0xc2], 0
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
cmp ecx, 0x94
ja 0x40a24a
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
add cl, 0x23
xor cl, byte [esp + edx + 0x40]
add cl, 0xb
mov edx, dword [esp + 0x10]
mov byte [esp + edx + 0x40], cl
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, 0x95
jb 0x40a220
mov dword [esp + 0x10], 0xcb6bcdbf
mov dword [esp + 0x14], 0xc77fc978
mov word [esp + 0x18], 0xc5c4
mov dword [esp + 0x1a], 0
mov word [esp + 0x1e], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0xf
ja 0x40a2dc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx eax, byte [esp + ecx + 0x10]
lea ecx, [ebx - 0x8d00d1e]
lea edx, [ebx + eax]
add edx, 0xf72ff2e2
add ebx, 0xe2
and ebx, eax
and ecx, eax
add ecx, ebx
mov eax, edx
not eax
and eax, ecx
not ecx
and ecx, edx
sub ecx, eax
add cl, 0xd2
mov eax, dword [esp + 8]
mov byte [esp + eax + 0x10], cl
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x10
jb 0x40a290
push 0x493e0
push dword [esp + 0x40]
push edi
push 0
push 0
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040eee0
add esp, 0x1c
push edi
call fcn.004089c0
add esp, 4
mov dword [esi + 0x60], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret