Function at 0x409770
Capabilities:
Contain obfuscated stackstrings
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 0x409e77
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x4097db
cmp al, 0x64
jb 0x4097ea
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
movzx ecx, cx
shr ecx, 0xc
imul edx, ecx, 0x64
sub al, dl
movzx eax, al
mov edx, eax
and edx, 0x7d
mov edi, eax
and edi, 2
or eax, 2
imul eax, edi
xor edi, 2
imul edi, edx
movzx eax, word [edi + eax + 0x436804]
mov word [esp + 0xd], ax
mov edx, 1
mov eax, ecx
jmp 0x4097f3
lea eax, [esp + 0xe]
mov dword [esp + 0x3c], eax
mov byte [esp + 0xe], 0x30
jmp 0x40981f
mov edx, 3
cmp al, 9
ja 0x40980a
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea ecx, [esp + edx]
add ecx, 0xb
mov dword [esp + 0x3c], ecx
mov byte [esp + edx + 0xb], al
jmp 0x40981f
movzx eax, word [eax + eax + 0x436804]
lea ecx, [esp + 0xd]
mov dword [esp + 0x3c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.004065b0
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.0042dbc0
add esp, 4
mov dword [esp + 0xe4], edi
lea eax, [edi + 0x800]
push eax
call fcn.0042f7d0
add esp, 4
mov edi, eax
mov dword [esp + 0x44], 0
mov word [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], 0x27233624
mov byte [esp + 0x44], 0x88
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x19
ja 0x4098e8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
movzx edx, byte [esp + eax + 0x40]
lea eax, [ecx + edx]
add eax, 0xa0e342ea
add ecx, 0xa0e342ea
and ecx, edx
add ecx, ecx
sub eax, ecx
add al, 0x9a
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x40], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x1a
jb 0x4098b0
lea eax, [esp + 0x40]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.00408f60
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], 0x83e6141c
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x1d
ja 0x409988
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, 0x8b0a5496
add ecx, 0x8b0a5496
and ecx, edx
add ecx, ecx
sub eax, ecx
add al, 0xe6
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x40], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x1e
jb 0x409950
mov ecx, esi
push dword [esp + 0x3c]
push ebx
push edi
call fcn.00408f60
mov eax, dword [str.BVnUqo___zenvolord4]
mov dword [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], 0x3b9c929a
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
cmp ecx, 0x1f
ja 0x409a39
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, 0x8f9f2f07
add edx, 0x8f9f2f07
and edx, ebx
add edx, edx
sub ecx, edx
add cl, 0xcf
mov edx, dword [esp + 0x10]
mov byte [esp + edx + 0x40], cl
mov ecx, dword [esp + 0x10]
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
cmp ecx, 0x20
jb 0x4099f0
mov ecx, esi
push eax
lea ebx, [esp + 0x44]
push ebx
push edi
call fcn.00408f60
mov dword [esp + 0x40], 0x572c5423
mov dword [esp + 0x44], 0x2453285b
mov dword [esp + 0x48], 0x4e4d483b
mov byte [esp + 0x4c], 0xac
mov dword [esp + 0x4d], 0
mov word [esp + 0x51], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x12
ja 0x409ac7
nop
nop
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]
lea edx, [eax + 0x59dfdbe8]
and edx, ecx
add eax, ecx
add eax, 0x59dfdbe8
add edx, edx
sub eax, edx
add al, 0xa8
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x40], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x13
jb 0x409a90
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x8b10e0e1
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x13
ja 0x409b43
mov ecx, dword [esp + 8]
mov eax, dword [esp + 8]
movzx edx, byte [esp + eax + 0x10]
lea eax, [ecx + edx]
add eax, 0x349f2c15
add ecx, 0x349f2c15
and ecx, edx
add ecx, ecx
sub eax, ecx
mov ecx, eax
xor ecx, 0x6c
and eax, 0x6c
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x14
jb 0x409b00
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.00408f60
mov dword [esp + 0x44], 0
mov word [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], 0x2820222c
mov byte [esp + 0x44], 0xb2
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x15
ja 0x409bc5
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
add al, 0x69
xor al, byte [esp + ecx + 0x40]
add al, 0x21
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x40], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x16
jb 0x409ba0
mov ecx, esi
push dword [esp + 0xe4]
push dword [esp + 0xe4]
push ebx
push edi
call fcn.00409250
mov eax, dword [esi + 0x60]
mov dword [esp + 0x40], 0x6bf96d93
mov dword [esp + 0x44], 0x67ea69fa
mov dword [esp + 0x48], 0x63f065f9
mov dword [esp + 0x4c], 0x1fcb61ec
mov dword [esp + 0x50], 0x1b931df0
mov dword [esp + 0x54], 0x178b1988
mov dword [esp + 0x58], 0x133215d2
mov dword [esp + 0x5c], 0xf831185
mov dword [esp + 0x60], 0xb860d98
mov dword [esp + 0x64], 0x7960991
mov dword [esp + 0x68], 0x38c05e5
mov dword [esp + 0x6c], 0x3fed018c
mov dword [esp + 0x70], 0x3ba93da6
mov dword [esp + 0x74], 0x37a339b6
mov dword [esp + 0x78], 0x33ae35e1
mov dword [esp + 0x7c], 0x2fa231d1
mov dword [esp + 0x80], 0x2bed2dcd
mov dword [esp + 0x84], 0x27b82908
mov dword [esp + 0x88], 0x23af25b7
mov dword [esp + 0x8c], 0xdf4221b2
mov dword [esp + 0x90], 0xdb54dd3d
mov dword [esp + 0x94], 0xd713d951
mov dword [esp + 0x98], 0xd34fd54a
mov dword [esp + 0x9c], 0xcf03d118
mov dword [esp + 0xa0], 0xcb57cd50
mov dword [esp + 0xa4], 0xc75fc905
mov dword [esp + 0xa8], 0xc35ec554
mov dword [esp + 0xac], 0xff61c153
mov dword [esp + 0xb0], 0xfb67fd65
mov dword [esp + 0xb4], 0xf778f976
mov dword [esp + 0xb8], 0xf323f569
mov dword [esp + 0xbc], 0xefd8f1c5
mov word [esp + 0xc0], 0xedec
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 0x409db9
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 + 0x1d6a7332]
add edx, 0x32
or edx, ecx
and edx, ebx
or ecx, ebx
sub ecx, edx
add cl, 0xa2
mov edx, dword [esp + 0x10]
mov byte [esp + edx + 0x40], cl
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, 0x9d
jb 0x409d80
mov dword [esp + 0x10], 0xab43a597
mov dword [esp + 0x14], 0xaf47a95a
mov word [esp + 0x18], 0xadae
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 + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x1a
ja 0x409e4a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ebx, byte [esp + ecx + 0x10]
lea ecx, [edx + ebx]
add ecx, 0x1129ae5
add edx, 0x1129ae5
and edx, ebx
add edx, edx
sub ecx, edx
add cl, 0xbd
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x1b
jb 0x409e10
push 0x493e0
push eax
push edi
push 0
push 0
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040dfd0
add esp, 0x1c
push edi
call fcn.004085a0
add esp, 4
mov dword [esi + 0x60], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret