Function at 0x5cc050
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6cabeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push ebp
push esi
push edi
push 0x3c
xor ebx, ebx
lea eax, [esp + 0x98]
push ebx
push eax
mov esi, ecx
call fcn.0062f6b0
mov edi, dword [esp + 0x26c]
mov ebp, dword [esp + 0x270]
mov eax, dword [esp + 0x25c]
mov ecx, edi
neg ecx
mov dword [esp + 0xa4], ecx
mov edx, ebp
push eax
lea ecx, [esp + 0xc0]
neg edx
push ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xbf], 0x86
mov byte [esp + 0xc0], bl
mov byte [esp + 0xc1], bl
mov byte [esp + 0xc2], 2
mov byte [esp + 0xc3], 1
mov byte [esp + 0xbc], bl
call fcn.00630960
add esp, 0x14
lea edx, [esp + 0x94]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push edx
call ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x258]
test eax, eax
je 0x5cc13e
cmp byte [eax], 0
je 0x5cc13e
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.00630960
add esp, 8
lea ecx, [esp + 0x94]
push ecx
call ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x254]
test eax, eax
je 0x5cc16d
cmp byte [eax], 0
je 0x5cc16d
push eax
lea edx, [esp + 0xb4]
push edx
call fcn.00630960
add esp, 8
lea eax, [esp + 0x94]
push eax
call ebx
mov dword [esp + 0x34], eax
push 4
lea ecx, [esp + 0x70]
push str.XGFT
push ecx
call fcn.0062fff0
mov ebx, dword [esi + 0x64]
mov dword [esp + 0x98], ebx
xor ebx, ebx
add esp, 0xc
cmp dword [esi + 0xc], 0x81
lea ecx, [edi + edi]
sete bl
mov eax, edi
mov edx, ecx
mov dword [esp + 0x70], 5
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x90], ebx
mov bl, byte [esp + 0x26c]
test bl, bl
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ebp
je 0x5cc1f5
mov ebp, dword [esp + 0x264]
add ecx, 2
lea eax, [edi + 2]
add ebp, 2
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ebp
mov dword [esi + 0x3c], edx
mov edx, dword [esp + 0x264]
mov dword [esi + 0x30], ecx
lea ecx, [esp + 0xd0]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], ebp
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edx
call fcn.00586830
mov eax, dword [esp + 0x25c]
push 0x2000
push 1
push eax
lea ecx, [esp + 0xdc]
mov dword [esp + 0x254], 0
call fcn.005868b0
mov edx, dword [esp + 0xd0]
push 0x28
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0xd8]
call dword [edx + 0x14]
mov eax, 8
cdq
idiv dword [esi + 0x64]
mov ecx, dword [esi + 0x10]
imul ecx, dword [esi + 0x30]
mov edi, dword [esi + 0x14]
imul edi, dword [esi + 0x34]
mov dword [esi + 0x4c], edi
push 0
mov ebx, eax
mov eax, ecx
cdq
idiv ebx
mov dword [esi + 0x48], ecx
lea ecx, [esi + 0x18]
add eax, 3
and eax, 0xfffffffc
imul edi, eax
push edi
mov dword [esi + 0x44], eax
call fcn.00415e00
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0x100
mov ebx, eax
push 0x100
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [esp + 0x5c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5cc2c9
push eax
jmp 0x5cc2ce
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push ebx
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xffffff
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x10000
call fcn.0062e919
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x64]
mov edi, 1
add esp, 4
cmp eax, edi
jne 0x5cc567
mov eax, dword [esi + 0x2c]
add eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x20], eax
mov eax, 0x21
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x5cc346
cmp eax, 0x30
jl 0x5cc33e
cmp eax, 0x39
jg 0x5cc33e
mov edx, dword [esp + 0x1c]
push edx
jmp 0x5cc33f
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [esi + 0x34]
xor ebp, ebp
test eax, eax
jbe 0x5cc3bc
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
lea esp, [esp]
mov eax, dword [esi + 0x2c]
xor edi, edi
test eax, eax
jbe 0x5cc3a6
lea esp, [esp]
push ebp
push edi
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
mov edx, dword [esp + 0x14]
and eax, 0xffffff
neg eax
sbb al, al
and eax, 0xff
mov byte [edx + edi], al
mov eax, dword [esi + 0x2c]
inc edi
cmp edi, eax
jb 0x5cc380
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esi + 0x34]
inc ebp
cmp ebp, eax
mov dword [esp + 0x14], ecx
jb 0x5cc370
mov ecx, dword [esp + 0x26c]
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x2c]
push ecx
mov ecx, dword [esp + 0x24]
push 0
push 0
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.005ca9b0
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x7f
mov dword [esp + 0x18], eax
jbe 0x5cc325
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi]
lea eax, [eax + eax + 3]
and eax, 0xfffffffc
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x14], eax
jg 0x5cc82e
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
mov dword [esp + 0x10], eax
jg 0x5cc54f
xor edx, edx
mov dh, byte [esp + 0x14]
movzx eax, dx
mov dword [esp + 0x38], eax
movzx eax, word [esp + 0x10]
or eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
test edx, edx
mov word [esp + 0x28], ax
mov word [esp + 0x2a], 0
je 0x5cc498
movzx eax, ax
mov ecx, eax
and ecx, 0xff
shr eax, 8
cmp ecx, 0xa1
jb 0x5cc490
cmp ecx, 0xf7
ja 0x5cc490
cmp eax, 0xa0
jb 0x5cc490
cmp eax, 0xfe
ja 0x5cc490
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x5cc491
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 2
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [esi + 0x34]
xor ebp, ebp
test eax, eax
jbe 0x5cc50e
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
jmp 0x5cc4c0
mov ecx, dword [esi + 0x2c]
shl ecx, 1
xor edi, edi
test ecx, ecx
jbe 0x5cc4f8
jmp 0x5cc4d0
push ebp
push edi
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
mov edx, dword [esp + 0x2c]
and eax, 0xffffff
neg eax
sbb al, al
and eax, 0xff
mov byte [edx + edi], al
mov eax, dword [esi + 0x2c]
inc edi
shl eax, 1
cmp edi, eax
jb 0x5cc4d0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x34]
inc ebp
add edx, ecx
cmp ebp, eax
mov dword [esp + 0x2c], edx
jb 0x5cc4c0
mov edx, dword [esp + 0x26c]
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x2c]
mov edi, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x24]
push 0
push 0
push eax
mov eax, dword [esp + 0x40]
shl ecx, 1
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.005caba0
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jle 0x5cc440
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jle 0x5cc423
jmp 0x5cc82e
lea edx, [esp + 0x104]
push edx
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
xor eax, eax
mov word [esp + 0x10], ax
mov word [esp + 0x12], ax
mov ecx, dword [esp + 0x10]
mov word [esp + 0x28], ax
mov word [esp + 0x2a], di
mov eax, dword [esp + 0x28]
push 0x10000
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
call fcn.0062e919
mov ebp, eax
mov edi, 0x21
add esp, 4
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5cc5e5
cmp edi, 0x30
jl 0x5cc5d9
cmp edi, 0x39
jg 0x5cc5d9
mov eax, dword [esp + 0x1c]
push eax
jmp 0x5cc5de
mov ecx, dword [esp + 0x24]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x5c]
push edx
push ebp
push 0x10000
lea eax, [esp + 0x4c]
push eax
push 6
push edi
push ebx
call dword [sym.imp.GDI32.dll_GetGlyphOutlineA]
cmp eax, 0xffffffff
je 0x5cc672
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
add edi, 3
and edi, 0xfffffffc
imul edx, edi
xor ecx, ecx
test edx, edx
jbe 0x5cc63d
jmp 0x5cc620
movzx eax, byte [ecx + ebp]
lea eax, [eax + eax*2]
shl eax, 1
cmp eax, 0xfc
jb 0x5cc635
mov eax, 0xff
mov byte [ecx + ebp], al
inc ecx
cmp ecx, edx
jb 0x5cc620
mov ecx, dword [esp + 0x26c]
mov edx, dword [esp + 0x108]
mov eax, dword [esp + 0x48]
push ecx
sub edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push edi
push ebp
push eax
mov ecx, esi
call fcn.005ca9b0
mov edi, dword [esp + 0x10]
inc edi
cmp edi, 0x7f
mov dword [esp + 0x10], edi
jbe 0x5cc5c0
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 4]
cmp eax, dword [esi]
mov dword [esp + 0x18], eax
jg 0x5cc82e
jmp 0x5cc6a0
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
mov dword [esp + 0x14], eax
jg 0x5cc81b
xor edx, edx
mov dh, byte [esp + 0x18]
movzx eax, dx
mov dword [esp + 0x38], eax
lea ecx, [ecx]
movzx eax, word [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov dx, word [0x6f07a0]
or eax, ecx
xor ecx, ecx
mov ch, al
mov dword [esp + 0x28], eax
sar eax, 8
push 2
mov word [esp + 0x24], dx
lea edx, [esp + 0x24]
or ecx, eax
mov al, byte [0x6f07a2]
mov edi, ecx
lea ecx, [esp + 0x2c]
push ecx
push edx
mov byte [esp + 0x2e], al
call fcn.0062f710
mov eax, dword [esp + 0x40]
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], 6
je 0x5cc761
movzx eax, di
mov ecx, eax
and ecx, 0xff
shr eax, 8
cmp ecx, 0xa1
jb 0x5cc74d
cmp ecx, 0xf7
ja 0x5cc74d
cmp eax, 0xa0
jb 0x5cc74d
cmp eax, 0xfe
ja 0x5cc74d
mov eax, dword [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x5cc761
mov ecx, dword [esp + 0x34]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x10], 4
cmp dword [esp + 0x264], 0x18
jle 0x5cc773
mov dword [esp + 0x10], 4
lea edx, [esp + 0x5c]
push edx
push ebp
push 0x10000
lea eax, [esp + 0x4c]
push eax
push 6
push edi
push ebx
call dword [sym.imp.GDI32.dll_GetGlyphOutlineA]
cmp eax, 0xffffffff
je 0x5cc807
mov edi, dword [esp + 0x40]
add edi, 3
and edi, 0xfffffffc
mov edx, edi
imul edx, dword [esp + 0x44]
xor ecx, ecx
test edx, edx
jbe 0x5cc7d1
lea esp, [esp]
movzx eax, byte [ecx + ebp]
imul eax, dword [esp + 0x10]
cmp eax, 0xfc
jb 0x5cc7c5
mov eax, 0xff
mov ebp, dword [esp + 0x2c]
mov byte [ecx + ebp], al
inc ecx
cmp ecx, edx
jb 0x5cc7b0
mov ecx, dword [esp + 0x26c]
mov edx, dword [esp + 0x108]
mov eax, dword [esp + 0x48]
push ecx
sub edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push edi
push ebp
push eax
push ecx
mov ecx, esi
call fcn.005caba0
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jle 0x5cc6c0
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jle 0x5cc6a0
mov edx, dword [esp + 0x30]
push edx
call fcn.00631fc2
mov eax, dword [esi + 0x1c]
add esp, 4
test eax, eax
jne 0x5cc846
xor ecx, ecx
jmp 0x5cc84b
mov ecx, dword [esi + 0x20]
sub ecx, eax
mov eax, dword [esi + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0xd8]
lea ecx, [esp + 0xd8]
call dword [eax + 0x14]
lea ecx, [esp + 0xd0]
call fcn.00586960
mov ecx, dword [esp + 0x58]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push ebx
call edi
mov edx, dword [esp + 0x3c]
push edx
push ebx
call edi
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
mov ecx, dword [esp + 0x34]
push ecx
call edi
mov edx, dword [esp + 0x24]
push edx
call edi
mov eax, dword [esp + 0x54]
push eax
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x25c]
push ecx
lea edx, [esp + 0x140]
push str._s.tga
push edx
call fcn.0062f64e
add esp, 0xc
lea eax, [esp + 0x13c]
push eax
mov ecx, esi
call fcn.005cb010
lea ecx, [esp + 0xd0]
mov dword [esp + 0x248], 0xffffffff
call fcn.00586a30
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x23c
ret 0x20