Function at 0x409980
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10c
cmp dword [ecx + 0x20], 0
je 0x409ed7
mov esi, ecx
lea eax, [ecx + 0x10]
push eax
call fcn.00406320
add esp, 4
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xc], eax
movzx eax, byte [esi]
imul ecx, eax, 0xcd
shr ecx, 0xa
and ecx, 0xfffffffe
lea ecx, [ecx + ecx*4]
sub al, cl
movzx eax, al
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov byte [esp + 6], al
mov byte [esp + 7], 0
mov dword [esp + 0x10], edx
lea eax, [edx + 0x400]
push eax
call fcn.00408420
add esp, 4
mov dword [esp], eax
mov dword [esp + 0x70], 0xb0f1200
mov byte [esp + 0x74], 0x94
mov dword [esp + 0x75], 0
mov word [esp + 0x79], 0
lea eax, [esp + 0x70]
mov ecx, 0x2c8bad59
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [eax]
lea ebx, [ecx - 0x2c8bad00]
and ebx, edx
or edx, ecx
not edx
or edx, ebx
mov ebx, edx
xor ebx, 0x3f
and edx, 0x40
add edx, edx
sub edx, ebx
inc dl
mov byte [eax], dl
inc eax
dec ecx
cmp ecx, 0x2c8bad4e
jne 0x409a20
lea ebp, [esp + 0x70]
mov ecx, esi
push 0x449028
push ebp
push dword [esp + 8]
call fcn.004092a0
mov dword [esp + 0x70], 0xd16a647c
mov word [esp + 0x74], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x70]
lea ecx, [eax + 0xc6bc4ad]
mov ebx, 0x53943b52
sub ebx, eax
and ebx, 0x4380300d
and ecx, 0x842c012
or ecx, ebx
xor ecx, edx
xor ecx, 0x67a934ad
mov edx, ecx
and edx, 1
mov ebx, 1
sub ebx, ecx
and ebx, 1
and ecx, 0xfe
or ecx, ebx
lea ecx, [ecx + edx*2]
add cl, 0x9e
mov byte [esp + eax + 0x70], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 6
jb 0x409a80
lea eax, [esp + 6]
mov ecx, esi
push eax
push ebp
push dword [esp + 8]
call fcn.004092a0
mov eax, dword [str.xAeOdp__yellow]
mov dword [esp + 8], eax
mov dword [esp + 0x70], 0x99f6ece8
mov dword [esp + 0x74], 0
mov ecx, 0x9704be4
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebp]
mov ebx, ecx
or ebx, edx
mov edi, ebx
not edi
lea eax, [ecx - 0x9704b00]
and eax, edx
lea edx, [ebx + edi*2]
inc edx
or edx, eax
mov eax, edx
and eax, 0x78
xor edx, 0x78
lea eax, [edx + eax*2]
inc al
mov byte [ebp], al
inc ebp
dec ecx
cmp ecx, 0x9704bdc
jne 0x409b10
lea ebp, [esp + 0x70]
mov ecx, esi
push dword [esp + 8]
push ebp
push dword [esp + 8]
call fcn.004092a0
mov dword [esp + 0x70], 0x2d302839
mov dword [esp + 0x74], 0x302d3421
mov dword [esp + 0x78], 0x26272c31
mov byte [esp + 0x7c], 0x88
mov dword [esp + 0x7d], 0
mov dword [esp + 0x80], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x70]
lea edx, [eax - 0x178841f]
and edx, ecx
add ecx, eax
add ecx, 0xfe877be1
add edx, edx
sub ecx, edx
mov ebx, ecx
and ebx, 0x6029498
mov edi, ecx
and edi, 2
mov edx, edi
xor edx, 2
imul edx, ebx
or ebx, 2
imul ebx, edi
mov edi, ecx
or edi, 0xf8a56b65
not ecx
or ecx, 0x602949a
and ecx, edi
not ecx
add edx, ecx
add edx, ebx
and ecx, 1
xor edx, 1
lea ecx, [edx + ecx*2]
mov byte [esp + eax + 0x70], cl
mov ecx, eax
not ecx
mov edx, ecx
or edx, 1
or ecx, 0xfffffffe
add ecx, edx
lea eax, [ecx + eax*2]
add eax, 3
cmp eax, 0x14
jb 0x409b90
mov dword [esp + 0x14], 0x61eafac7
mov word [esp + 0x18], 0
mov byte [esp + 0x1a], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
and ecx, 1
mov edx, eax
xor edx, 0x99
lea ecx, [edx + ecx*2]
xor cl, byte [esp + eax + 0x14]
add cl, 3
mov byte [esp + eax + 0x14], cl
add eax, 0x71df6e46
mov ecx, eax
and ecx, 0xb
xor eax, 0x8e2091bb
lea eax, [eax + ecx*2]
cmp eax, 7
jb 0x409c20
lea ebx, [esp + 0x14]
mov ecx, esi
push ebp
push ebx
push dword [esp + 8]
call fcn.004092a0
mov dword [esp + 0x70], 0xd6c2c4da
mov byte [esp + 0x74], 0x70
mov word [esp + 0x75], 0
mov byte [esp + 0x77], 0
xor eax, eax
nop
nop
movzx ecx, byte [esp + eax + 0x70]
mov edx, 0x962ed46a
sub edx, eax
or edx, ecx
mov edi, 0x6a
sub edi, eax
and edi, ecx
lea ecx, [edx + edx]
not ecx
add ecx, edx
or ecx, edi
add cl, 0x17
mov byte [esp + eax + 0x70], cl
mov ecx, eax
not ecx
or ecx, 1
add ecx, eax
inc ecx
mov edi, ecx
and edi, 2
mov edx, ecx
or ecx, 2
imul ecx, edi
xor edi, 2
and edx, 0xfffffffd
imul edx, edi
xor eax, 1
add eax, ecx
add eax, edx
cmp eax, 8
jb 0x409c80
mov ecx, esi
push dword [esp + 0x10]
push dword [esp + 0x10]
push ebp
push dword [esp + 0xc]
call fcn.00409500
mov dword [esp + 0x14], 0xf19f0fc9
mov dword [esp + 0x18], 0xf566f35e
mov dword [esp + 0x1c], 0xf958f753
mov dword [esp + 0x20], 0xfd15fb6c
mov dword [esp + 0x24], 0xe165ff48
mov dword [esp + 0x28], 0xe545e370
mov dword [esp + 0x2c], 0xe906e73e
mov dword [esp + 0x30], 0xed7deb47
mov dword [esp + 0x34], 0xd17aef40
mov dword [esp + 0x38], 0xd542d37b
mov dword [esp + 0x3c], 0xd944d777
mov dword [esp + 0x40], 0xdd0bdb4c
mov dword [esp + 0x44], 0xc14fdf7a
mov dword [esp + 0x48], 0xc56dc352
mov dword [esp + 0x4c], 0xc962c72b
mov dword [esp + 0x50], 0xcd5ecb6b
mov dword [esp + 0x54], 0xb113cf6f
mov dword [esp + 0x58], 0xb510b350
mov dword [esp + 0x5c], 0xb921b725
mov dword [esp + 0x60], 0xbd1ebb16
mov dword [esp + 0x64], 0xa12cbf1f
mov dword [esp + 0x68], 0xa57da33b
mov dword [esp + 0x6c], 0xa7a4
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, ecx
xor edi, 6
mov edx, eax
and edx, 0xf2
sub edx, edi
add dl, 0x83
xor dl, byte [esp + ecx + 0x14]
add dl, 0x8f
mov byte [esp + ecx + 0x14], dl
inc ecx
add eax, 2
cmp ecx, 0x5c
jne 0x409db0
movzx eax, word [esp + 0x14]
test ax, ax
je 0x409e02
lea ebp, [esp + 0x70]
lea ecx, [esp + 0x16]
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebp], ax
add ebp, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409df0
mov word [ebp], 0
movzx ecx, byte [esi + 0x60]
test cl, cl
je 0x409e32
lea eax, [esi + 0x61]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx ecx, cl
mov word [ebp], cx
add ebp, 2
movzx ecx, byte [eax]
inc eax
test cl, cl
jne 0x409e20
mov dword [ebp], 0xa000d
mov word [ebp + 4], 0
mov eax, dword [esi + 0x80]
mov dword [esp + 0x14], 0xc1a5c795
mov dword [esp + 0x18], 0xcda9c350
mov word [esp + 0x1c], 0xcfcc
mov dword [esp + 0x1e], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dl, 0xae
sub dl, cl
xor dl, byte [esp + ecx + 0x14]
mov dh, 0x6a
sub dh, dl
mov byte [esp + ecx + 0x14], dh
add ecx, 0xc9763b0e
mov edx, ecx
xor edx, 0xc9763b0d
and ecx, 0x12
add ecx, ecx
sub ecx, edx
cmp ecx, 0xe
jb 0x409e70
lea ecx, [esp + 0x70]
push 0x493e0
push eax
mov edi, dword [esp + 8]
push edi
push 0
push 0
push ecx
push ebx
call fcn.0040c5f0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408430
add esp, 4
mov eax, dword [esi + 0x80]
add dword [esi + 4], eax
mov dword [esi + 0x80], 0
jmp 0x409ed9
mov bl, 1
mov eax, ebx
add esp, 0x10c
pop esi
pop edi
pop ebx
pop ebp
ret