Function at 0x50ebb0
Capabilities:
Create directory
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fcd8
mov eax, dword fs:[0]
push eax
sub esp, 0x674
mov eax, dword [0x661850]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push str..king
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x364], eax
push 0
push 0x5783fc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x364], eax
push 0
push str..king_setting
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x364], eax
push 0
push str..kingdata
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x364], eax
push 0
push str..kingcapture
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x364], eax
push 0
push str..king_sound
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x364], eax
mov byte [ebp - 0x67c], 0
push 0x103
push 0
lea eax, [ebp - 0x67b]
push eax
call fcn.005454d0
add esp, 0xc
lea ecx, [ebp - 0x67c]
push ecx
push str..init.ini
call fcn.00534340
add esp, 8
push eax
lea ecx, [ebp - 0x21c]
call fcn.0043bed0
push str..king3.ini
push 0x32
lea edx, [ebp - 0x35c]
push edx
push str.IniName
push str.Config
lea ecx, [ebp - 0x21c]
call fcn.0043bf00
lea eax, [ebp - 0x67c]
push eax
lea ecx, [ebp - 0x35c]
push ecx
call fcn.00534340
add esp, 8
push eax
lea ecx, [ebp - 0x574]
call fcn.0043bed0
push 0
push str.FullScreenMode
push str.setup
lea ecx, [ebp - 0x574]
call fcn.00450600
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov byte [0x69d4b6], al
movzx edx, byte [0x69d4b6]
push edx
push str.FullScreenMode
push str.setup
lea ecx, [ebp - 0x574]
call fcn.00450630
push 0
push str.Interface145
push str.setup
lea ecx, [ebp - 0x574]
call fcn.00450600
mov dword [0x6658cc], eax
cmp dword [0x6658cc], 0
jle 0x50ed41
mov dword [0x6658cc], 1
mov eax, dword [0x6658cc]
push eax
push str.Interface145
push str.setup
lea ecx, [ebp - 0x574]
call fcn.00450630
push 0x104
push 0
push 0x69e428
call fcn.005454d0
add esp, 0xc
push 0x69e428
call fcn.00403e50
add esp, 4
push 0x320
push str.ScreenMetrics
push str.setup
lea ecx, [ebp - 0x574]
call fcn.00450600
mov dword [0x6658d0], eax
mov ecx, dword [0x6658d0]
push ecx
push str.ScreenMetrics
push str.setup
lea ecx, [ebp - 0x574]
call fcn.00450630
push 0
push str.BackDraw
push str.Config
lea ecx, [ebp - 0x574]
call fcn.00450600
mov dword [0x6658d4], eax
push 0x104
lea edx, [ebp - 0x324]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x360], 0
lea eax, [ebp - 0x324]
push eax
lea ecx, [ebp - 0x10]
call fcn.0050f360
mov dword [ebp - 4], 0
push 0
push 0x8000000
push 3
push 0
push 3
push closesocket
lea ecx, [ebp - 0x10]
call fcn.0044a3f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x360], eax
push 0
mov ecx, dword [ebp - 0x360]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x328], eax
push 0
lea edx, [ebp - 0x368]
push edx
mov eax, dword [ebp - 0x328]
push eax
mov ecx, dword [ebp - 0x328]
push ecx
mov ecx, 0x69ec04
call fcn.0040e470
push eax
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov ecx, 0x69ec04
call fcn.004f70a0
mov ecx, dword [ebp - 0x328]
mov dword [0x664d8c], ecx
mov edx, dword [ebp - 0x328]
push edx
push 0x69ec04
call fcn.0050eb40
add esp, 8
and eax, 0x316f513e
xor eax, 0x8a23daf1
push eax
call fcn.00547835
add esp, 4
mov dword [0x69e644], eax
mov eax, dword [0x6658d0]
mov dword [ebp - 0x680], eax
cmp dword [ebp - 0x680], 0
je 0x50eef5
cmp dword [ebp - 0x680], 0x320
je 0x50eef5
cmp dword [ebp - 0x680], 0x400
je 0x50ef4b
jmp 0x50ef9e
mov ecx, 0x320
mov word [0x6658d8], cx
mov edx, 0x258
mov word [0x6658dc], dx
mov dword [0x6658e0], 0x320
mov dword [0x6658e4], 0x258
mov dword [0x6658e8], 0xc
mov dword [0x6658ec], 0xc
mov dword [0x6658f0], 0x16
mov dword [0x6658f4], 0x19
jmp 0x50ef9e
mov eax, 0x400
mov word [0x6658d8], ax
mov ecx, 0x300
mov word [0x6658dc], cx
mov dword [0x6658e0], 0x400
mov dword [0x6658e4], 0x300
mov dword [0x6658e8], 0xe
mov dword [0x6658ec], 0xf
mov dword [0x6658f0], 0x16
mov dword [0x6658f4], 0x19
push 0
push str.NOMD5
push str.setup
lea ecx, [ebp - 0x574]
call fcn.00450600
mov dword [0x69d4b0], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040e220
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054514c
mov esp, ebp
pop ebp
ret