Function at 0x409720
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 0x409771
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0x3b], 0
test eax, eax
je 0x409778
cmp al, 0x64
jb 0x409787
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 + 0x43e438]
mov word [esp + 0x39], ax
mov ecx, 1
mov eax, edx
jmp 0x409790
mov bl, 1
jmp 0x409e0c
lea eax, [esp + 0x3a]
mov dword [esp + 0x3c], eax
mov byte [esp + 0x3a], 0x30
jmp 0x4097d2
mov ecx, 3
cmp al, 9
ja 0x4097a7
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea edx, [esp + ecx]
add edx, 0x37
mov dword [esp + 0x3c], edx
mov byte [esp + ecx + 0x37], al
jmp 0x4097d2
mov ecx, eax
and ecx, 0x7d
mov edx, eax
and edx, 2
or eax, 2
imul eax, edx
xor edx, 2
imul edx, ecx
movzx eax, word [edx + eax + 0x43e438]
lea ecx, [esp + 0x39]
mov dword [esp + 0x3c], ecx
mov word [esp + 0x39], ax
lea eax, [esi + 0x10]
push eax
call fcn.004063c0
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xe0], eax
lea ebx, [esp + 0xeb]
push ebx
call fcn.00433b90
add esp, 4
mov eax, edi
and eax, 0x800
mov dword [esp + 0xe4], edi
mov ecx, edi
xor ecx, 0x800
lea eax, [ecx + eax*2]
push eax
call fcn.00435ac0
add esp, 4
mov edi, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], 0x2f233c2e
mov byte [esp + 0x44], 0xb2
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x13
ja 0x40989f
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
movzx eax, byte [esp + eax + 0x40]
mov edx, ecx
and edx, 0x6245849
xor ecx, 0x6245849
lea ecx, [ecx + edx*2]
mov edx, ecx
and edx, eax
add eax, ecx
add edx, edx
sub eax, edx
inc al
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x40], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x14
jb 0x409860
lea eax, [esp + 0x40]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.00408f00
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 + 0x44], 0
mov dword [esp + 0x40], 0xdb363028
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x1d
ja 0x409925
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
add al, 0x9c
xor al, byte [esp + ecx + 0x40]
add al, 0xbc
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x40], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x1e
jb 0x409900
mov ecx, esi
push dword [esp + 0x3c]
push ebx
push edi
call fcn.00408f00
mov eax, dword [str.P6Mk0M__superstar]
mov dword [esp + 0x40], 0xf356a4a0
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 0x4099aa
nop
nop
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 ecx, 0xafc96b7e
add edx, 0xafc96b7e
and edx, ebx
add edx, edx
sub ecx, edx
add cl, 0x8e
mov edx, dword [esp + 0x10]
mov byte [esp + edx + 0x40], cl
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, 0x10
jb 0x409970
mov ecx, esi
push eax
lea ebx, [esp + 0x44]
push ebx
push edi
call fcn.00408f00
mov dword [esp + 0x40], 0xf160e13
mov dword [esp + 0x44], 0x1a031a0b
mov dword [esp + 0x48], 0x18050a1b
mov byte [esp + 0x4c], 0xb2
mov dword [esp + 0x4d], 0
mov dword [esp + 0x51], 0
mov dword [esp + 0x55], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x1b
ja 0x409a50
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
movzx ecx, byte [esp + ecx + 0x40]
mov edx, eax
xor edx, 0x2178d945
and eax, 0x2178d945
lea eax, [edx + eax*2]
xor eax, ecx
mov ecx, eax
or ecx, 0x1c
and eax, 0x1c
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, 0x1c
jb 0x409a10
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
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 + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x1f
ja 0x409adf
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0x5a]
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add al, 0xe4
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x20
jb 0x409ab0
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.00408f00
mov dword [esp + 0x44], 0
mov dword [esp + 0x5b], 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], 0xd6dec4c6
mov byte [esp + 0x44], 0x70
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x1e
ja 0x409b75
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
add al, 0xce
xor al, byte [esp + ecx + 0x40]
add al, 0x5e
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x40], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x1f
jb 0x409b50
mov ecx, esi
push dword [esp + 0xe4]
push dword [esp + 0xe4]
push ebx
push edi
call fcn.00409220
mov eax, dword [esi + 0x60]
mov dword [esp + 0x40], 0xfb69f903
mov dword [esp + 0x44], 0xff68fd64
mov dword [esp + 0x48], 0xf36ef119
mov dword [esp + 0x4c], 0xf72bf566
mov dword [esp + 0x50], 0xeb63e902
mov dword [esp + 0x54], 0xef0bed7a
mov dword [esp + 0x58], 0xe3c0e124
mov dword [esp + 0x5c], 0xe773e57d
mov dword [esp + 0x60], 0x9b0c997a
mov dword [esp + 0x64], 0x9f0c9d01
mov dword [esp + 0x68], 0x9302917d
mov dword [esp + 0x6c], 0x97459506
mov dword [esp + 0x70], 0x8b198970
mov dword [esp + 0x74], 0x8f138d18
mov dword [esp + 0x78], 0x83648151
mov dword [esp + 0x7c], 0x87108561
mov dword [esp + 0x80], 0xbb75b965
mov dword [esp + 0x84], 0xbf5ebd9a
mov dword [esp + 0x88], 0xb327b12f
mov dword [esp + 0x8c], 0xb750b52c
mov dword [esp + 0x90], 0xab3aa955
mov dword [esp + 0x94], 0xaf63ad21
mov dword [esp + 0x98], 0xa347a14c
mov dword [esp + 0x9c], 0xa773a56a
mov dword [esp + 0xa0], 0x5bbf5942
mov dword [esp + 0xa4], 0x5fc75d8d
mov dword [esp + 0xa8], 0x53b451ce
mov dword [esp + 0xac], 0x57b155c3
mov dword [esp + 0xb0], 0x4baf49cd
mov dword [esp + 0xb4], 0x4fde4dd8
mov dword [esp + 0xb8], 0x439341a9
mov dword [esp + 0xbc], 0x477e457d
mov word [esp + 0xc0], 0x7946
mov dword [esp + 0xd9], 0
mov dword [esp + 0xd6], 0
mov dword [esp + 0xd2], 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, 0x9c
ja 0x409d63
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
movzx edx, byte [esp + edx + 0x40]
lea ebx, [ecx + 0x1f]
and ebx, edx
add ecx, edx
add ebx, ebx
sub ecx, ebx
add cl, 0x46
mov edx, dword [esp + 0x10]
mov byte [esp + edx + 0x40], cl
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, 0x9d
jb 0x409d30
mov dword [esp + 0x10], 0x3e30ddf
mov dword [esp + 0x14], 0x79f0190
mov word [esp + 0x18], 0x504
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x22], 0
mov dword [esp + 0x26], 0
mov byte [esp + 0x2a], 0
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0xc]
cmp ecx, 0x1a
ja 0x409dd7
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
add cl, 0x56
xor cl, byte [esp + edx + 0x10]
add cl, 0xa6
mov edx, dword [esp + 0xc]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
cmp ecx, 0x1b
jb 0x409db0
push 0x493e0
push eax
push edi
push 0
push 0
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040d3d0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408440
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