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

Disassembly:
push 0xffffffffffffffff
push 0x6f820b
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.0065c670
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.0065d920
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 0x5f8cee
cmp byte [eax], 0
je 0x5f8cee
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.0065d920
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 0x5f8d1d
cmp byte [eax], 0
je 0x5f8d1d
push eax
lea edx, [esp + 0xb4]
push edx
call fcn.0065d920
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.0065cfb0
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 0x5f8da5
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.005b1220
mov eax, dword [esp + 0x25c]
push 0x2000
push 1
push eax
lea ecx, [esp + 0xdc]
mov dword [esp + 0x254], 0
call fcn.005b12a0
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.00416be0
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 0x5f8e79
push eax
jmp 0x5f8e7e
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.0065b8d9
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x64]
mov edi, 1
add esp, 4
cmp eax, edi
jne 0x5f9117
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 0x5f8ef6
cmp eax, 0x30
jl 0x5f8eee
cmp eax, 0x39
jg 0x5f8eee
mov edx, dword [esp + 0x1c]
push edx
jmp 0x5f8eef
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 0x5f8f6c
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 0x5f8f56
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 0x5f8f30
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 0x5f8f20
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.005f7560
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x7f
mov dword [esp + 0x18], eax
jbe 0x5f8ed5
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 0x5f93de
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
mov dword [esp + 0x10], eax
jg 0x5f90ff
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 0x5f9048
movzx eax, ax
mov ecx, eax
and ecx, 0xff
shr eax, 8
cmp ecx, 0xa1
jb 0x5f9040
cmp ecx, 0xf7
ja 0x5f9040
cmp eax, 0xa0
jb 0x5f9040
cmp eax, 0xfe
ja 0x5f9040
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x5f9041
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 0x5f90be
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
jmp 0x5f9070
mov ecx, dword [esi + 0x2c]
shl ecx, 1
xor edi, edi
test ecx, ecx
jbe 0x5f90a8
jmp 0x5f9080
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 0x5f9080
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 0x5f9070
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.005f7750
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jle 0x5f8ff0
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jle 0x5f8fd3
jmp 0x5f93de
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.0065b8d9
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 0x5f9195
cmp edi, 0x30
jl 0x5f9189
cmp edi, 0x39
jg 0x5f9189
mov eax, dword [esp + 0x1c]
push eax
jmp 0x5f918e
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 0x5f9222
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 0x5f91ed
jmp 0x5f91d0
movzx eax, byte [ecx + ebp]
lea eax, [eax + eax*2]
shl eax, 1
cmp eax, 0xfc
jb 0x5f91e5
mov eax, 0xff
mov byte [ecx + ebp], al
inc ecx
cmp ecx, edx
jb 0x5f91d0
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.005f7560
mov edi, dword [esp + 0x10]
inc edi
cmp edi, 0x7f
mov dword [esp + 0x10], edi
jbe 0x5f9170
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 0x5f93de
jmp 0x5f9250
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
mov dword [esp + 0x14], eax
jg 0x5f93cb
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 [0x7204f0]
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 [0x7204f2]
mov edi, ecx
lea ecx, [esp + 0x2c]
push ecx
push edx
mov byte [esp + 0x2e], al
call fcn.0065c6d0
mov eax, dword [esp + 0x40]
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], 6
je 0x5f9311
movzx eax, di
mov ecx, eax
and ecx, 0xff
shr eax, 8
cmp ecx, 0xa1
jb 0x5f92fd
cmp ecx, 0xf7
ja 0x5f92fd
cmp eax, 0xa0
jb 0x5f92fd
cmp eax, 0xfe
ja 0x5f92fd
mov eax, dword [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x5f9311
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 0x5f9323
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 0x5f93b7
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 0x5f9381
lea esp, [esp]
movzx eax, byte [ecx + ebp]
imul eax, dword [esp + 0x10]
cmp eax, 0xfc
jb 0x5f9375
mov eax, 0xff
mov ebp, dword [esp + 0x2c]
mov byte [ecx + ebp], al
inc ecx
cmp ecx, edx
jb 0x5f9360
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.005f7750
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jle 0x5f9270
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jle 0x5f9250
mov edx, dword [esp + 0x30]
push edx
call fcn.0065f1d2
mov eax, dword [esi + 0x1c]
add esp, 4
test eax, eax
jne 0x5f93f6
xor ecx, ecx
jmp 0x5f93fb
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.005b1350
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.0065c60e
add esp, 0xc
lea eax, [esp + 0x13c]
push eax
mov ecx, esi
call fcn.005f7bc0
lea ecx, [esp + 0xd0]
mov dword [esp + 0x248], 0xffffffff
call fcn.005b1420
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