Function at 0x409890
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, 0x110
cmp dword [ecx + 0x20], 0
je 0x409d96
mov esi, ecx
lea eax, [ecx + 0x10]
push eax
call fcn.00406030
add esp, 4
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x10], 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 + 2], al
mov byte [esp + 3], 0
mov dword [esp + 4], edx
lea eax, [edx + 0x400]
push eax
call fcn.00408160
add esp, 4
mov edi, eax
mov dword [esp + 0x74], 0xbda552bc
mov byte [esp + 0x78], 0xd8
mov dword [esp + 0x79], 0
mov word [esp + 0x7d], 0
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
mov edx, ecx
xor dl, 0x4f
add dl, al
xor dl, byte [esp + ecx + 0x74]
add dl, 0x75
mov byte [esp + ecx + 0x74], dl
inc ecx
add al, 2
cmp ecx, 0xb
jne 0x409920
lea ebx, [esp + 0x74]
mov ecx, esi
push 0x447020
push ebx
push edi
call fcn.00409120
mov dword [esp + 0x74], 0x63061810
mov byte [esp + 0x78], 0
xor eax, eax
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xe8
xor cl, byte [esp + eax + 0x74]
add cl, 0x78
mov byte [esp + eax + 0x74], cl
inc eax
cmp eax, 5
jne 0x409960
lea eax, [esp + 2]
mov ecx, esi
push eax
push ebx
mov dword [esp + 0x10], edi
push edi
call fcn.00409120
mov eax, dword [str.FATE99__test]
mov dword [esp + 0xc], eax
mov dword [esp + 0x74], 0x9ffaf0f4
mov dword [esp + 0x78], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 0x74]
lea edi, [ecx + 0x1a]
and edi, edx
mov ebx, edi
and ebx, 0x3d
mov eax, edi
and eax, 2
mov ebp, edi
or ebp, 0xfffffffd
inc ebp
imul ebp, ebx
or edi, 2
imul edi, eax
sub ebp, edi
add edx, ecx
lea eax, [edx + ebp]
add eax, 0xb2385397
mov edx, eax
and edx, 1
xor eax, 1
lea eax, [eax + edx*2]
mov byte [esp + ecx + 0x74], al
mov eax, ecx
or eax, 1
or ecx, 0x1878837e
add ecx, eax
add ecx, 0xe7877c82
cmp ecx, 8
jb 0x4099b0
mov ecx, esi
push dword [esp + 0xc]
lea eax, [esp + 0x78]
push eax
mov ebp, dword [esp + 0x10]
push ebp
call fcn.00409120
mov dword [esp + 0x74], 0x7d686071
mov dword [esp + 0x78], 0x68656c79
mov dword [esp + 0x7c], 0x6a6b7469
mov byte [esp + 0x80], 0xd0
mov dword [esp + 0x81], 0
mov dword [esp + 0x84], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x74]
mov edx, eax
and edx, 0xd
mov edi, eax
and edi, 2
mov ebx, edi
xor ebx, 2
imul ebx, edx
or edx, 2
imul edx, edi
add edx, ebx
mov edi, eax
xor edi, 0xe03d06af
mov ebx, edx
and ebx, edi
xor edi, edx
lea edx, [edi + ebx*2]
xor ecx, 0xab42160f
xor edx, 0xab42160f
mov edi, ecx
and edi, edx
add edx, ecx
add edi, edi
sub edx, edi
mov ecx, edx
and ecx, 0x14
add ecx, ecx
xor edx, 0x6b
sub ecx, edx
mov byte [esp + eax + 0x74], cl
inc eax
cmp eax, 0x14
jne 0x409a60
mov dword [esp + 0x14], 0x99e6f6f3
mov dword [esp + 0x18], 0
lea eax, [esp + 0x14]
mov ecx, 0xa60dd7e4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [eax]
lea ebx, [ecx + 0x59f22900]
mov edx, ecx
xor edx, ebx
or ebx, edi
add edx, ecx
and edx, edi
sub edx, ebx
add dl, 0x78
mov byte [eax], dl
inc eax
dec ecx
cmp ecx, 0xa60dd7dc
jne 0x409ae0
lea edx, [esp + 0x14]
mov ecx, esi
lea eax, [esp + 0x74]
push eax
push edx
push ebp
call fcn.00409120
mov dword [esp + 0x74], 0x323e3c36
mov byte [esp + 0x78], 0x88
mov dword [esp + 0x79], 0
mov dword [esp + 0x7c], 0
mov eax, 0x23
mov ecx, 0xdc
nop
nop
nop
movzx edi, byte [esp + eax + 0x51]
mov ebx, ecx
or ebx, edi
lea edx, [edi + edi]
not edx
add edx, edi
or edx, eax
and edx, ebx
mov bl, 0x50
sub bl, dl
mov byte [esp + eax + 0x51], bl
inc eax
dec ecx
cmp eax, 0x2f
jne 0x409b40
mov ecx, esi
push dword [esp + 4]
push dword [esp + 0x14]
lea edi, [esp + 0x7c]
push edi
push ebp
call fcn.004093f0
mov dword [esp + 0x14], 0x118f1f59
mov dword [esp + 0x18], 0x1586138e
mov dword [esp + 0x1c], 0x9881773
mov dword [esp + 0x20], 0xd550b9c
mov dword [esp + 0x24], 0x1850f78
mov dword [esp + 0x28], 0x5650390
mov dword [esp + 0x2c], 0x3926074e
mov dword [esp + 0x30], 0x3dad3ba7
mov dword [esp + 0x34], 0x31aa3fa0
mov dword [esp + 0x38], 0x35a233ab
mov dword [esp + 0x3c], 0x29a43757
mov dword [esp + 0x40], 0x2d7b2bbc
mov dword [esp + 0x44], 0x21bf2f4a
mov dword [esp + 0x48], 0x25bd23b2
mov dword [esp + 0x4c], 0x5942277b
mov dword [esp + 0x50], 0x5dce5b3b
mov dword [esp + 0x54], 0x51135f3f
mov dword [esp + 0x58], 0x55305370
mov dword [esp + 0x5c], 0x49c157c5
mov dword [esp + 0x60], 0x4d2e4bd6
mov dword [esp + 0x64], 0x41dc4f2f
mov dword [esp + 0x68], 0x450d43cb
mov word [esp + 0x6c], 0x4744
mov byte [esp + 0x70], 0
mov word [esp + 0x6e], 0
mov eax, 0x8f96e685
movzx ecx, byte [esp + eax + 0x7069198f]
mov edx, eax
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
mov edx, ecx
and edx, 0x66
xor ecx, 0x66
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax + 0x7069198f], cl
inc eax
cmp eax, 0x8f96e6e2
jne 0x409c40
movzx eax, word [esp + 0x14]
test ax, ax
je 0x409c91
lea edi, [esp + 0x74]
lea ecx, [esp + 0x16]
mov word [edi], ax
add edi, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409c80
mov word [edi], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, 0xffffffff
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [esi + ecx + 0x61], 0
lea ecx, [ecx + 1]
jne 0x409cb0
cmp eax, ecx
jae 0x409ccc
movsx ecx, byte [esi + eax + 0x60]
mov word [edi], cx
add edi, 2
inc eax
jmp 0x409ca0
mov dword [edi], 0xa000d
mov word [edi + 4], 0
mov eax, dword [esi + 0x80]
mov dword [esp + 4], eax
mov dword [esp + 0x14], 0x9fff99ab
mov dword [esp + 0x18], 0xa3cb9dec
mov dword [esp + 0x1c], 0xa1a0
mov ecx, 0x6289a1a
mov edx, 0xe5
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + ecx - 0x6289a06]
mov ebx, edx
xor ebx, ecx
and ebx, edi
xor ebx, ecx
lea edi, [ebx - 0x1ecb0283]
mov ebp, edi
and ebp, 1
mov eax, edi
and eax, 0xfe
xor edi, 1
add ebx, edi
add ebx, 0xe134fd7d
sub ebx, eax
add ebx, ebp
mov byte [esp + ecx - 0x6289a06], bl
inc ecx
dec edx
cmp ecx, 0x6289a26
jne 0x409d10
lea eax, [esp + 0x74]
push 0x493e0
push dword [esp + 8]
mov edi, dword [esp + 0x10]
push edi
push 0
push 0
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0040c0e0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408170
add esp, 4
mov eax, dword [esi + 0x80]
add dword [esi + 4], eax
mov dword [esi + 0x80], 0
jmp 0x409d98
mov bl, 1
mov eax, ebx
add esp, 0x110
pop esi
pop edi
pop ebx
pop ebp
ret