Function at 0x10005a60
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c2b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x358
mov eax, dword [0x10081838]
mov dword [0x1009d994], eax
mov ax, word [0x1008183c]
push esi
push edi
mov word [0x1009d998], ax
call sub.KERNEL32.dll_GetCurrentThreadId
mov esi, dword [ebp + 8]
mov dword [0x1009c934], eax
mov eax, dword [esi + 0x150]
call eax
and eax, 0xffff0000
cmp eax, 0x2050000
push 0
sete byte [0x1009c930]
mov eax, dword [esi + 0x10]
mov dword [0x1009c938], eax
lea eax, [ebp - 0x20]
push eax
mov dword [section..data], 0
call fcn.10002b70
add esp, 8
push 3
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x10005b48
push 0x14
lea eax, [ebp - 0x5c]
push eax
push 0x2d0
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x5c]
push eax
call fcn.100615c8
add esp, 4
sub eax, 0x40c
je 0x10005b2b
sub eax, 5
jne 0x10005b41
mov eax, dword [0x10081848]
mov dword [0x1009d994], eax
mov ax, word [0x1008184c]
jmp 0x10005b3b
mov eax, dword [0x10081840]
mov dword [0x1009d994], eax
mov ax, word [0x10081844]
mov word [0x1009d998], ax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.1005ba9a
test eax, eax
jne 0x10005b5e
push sym.GamejoltGameAPI.mfx_DarkEdif_Invalid_Parameter
call fcn.1005bbc6
add esp, 4
lea eax, [ebp - 0x364]
push str.json
push eax
call fcn.10005930
add esp, 8
cmp word [ebp - 0x364], 0
je 0x10005bf3
push 0x1008213c
lea eax, [ebp - 0x364]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100617be
mov eax, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
je 0x10005d67
push 2
push 0
push eax
call fcn.10061f9c
push dword [ebp - 0x10]
call fcn.100626c0
push 0
push 0
push dword [ebp - 0x10]
mov esi, eax
call fcn.10061f9c
lea ecx, [esi + 1]
push ecx
call fcn.10060a08
mov edi, eax
mov byte [edi + esi], 0
push dword [ebp - 0x10]
push esi
push 1
push edi
call fcn.10061b3e
push dword [ebp - 0x10]
call fcn.10061935
add esp, 0x34
mov eax, 1
jmp 0x10005c3a
push 0x10082144
push 0x66
push dword [0x1009da14]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x10005d67
push edi
push dword [0x1009da14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [0x1009da14]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, 2
cmp eax, 1
mov dword [ebp - 0x14], eax
lea eax, [esi + 1]
push eax
sete byte [0x1009d990]
call fcn.10060a08
push esi
push edi
push eax
mov dword [ebp - 0x18], eax
call fcn.10058100
mov eax, dword [ebp - 0x18]
add esp, 0x10
cmp dword [ebp - 0x14], 2
mov byte [eax + esi], 0
je 0x10005c77
push edi
call fcn.100609ed
mov eax, dword [ebp - 0x18]
add esp, 4
push 0x100
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x24], 0
push ecx
push esi
push eax
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x34], xmm0
call fcn.10007380
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10005d2f
push eax
lea eax, [ebp - 0x15c]
sub esp, 8
mov edx, esp
mov ecx, eax
mov dword [edx], eax
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005cc0
lea eax, [ebp - 0x4c]
sub ecx, esi
push eax
mov dword [edx + 4], ecx
call fcn.10004490
add esp, 0x10
cmp dword [eax + 0x14], 7
mov dword [ebp - 4], 0
jbe 0x10005ce7
mov eax, dword [eax]
push eax
push str.JSON_file_for_GamejoltGameAPI_couldnt_be_parsed:_n_s
push str.Error_parsing_JSON
call fcn.10002720
mov ecx, dword [ebp - 0x38]
add esp, 0xc
cmp ecx, 7
jbe 0x10005d79
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10005d26
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005d8c
push ecx
push edx
call fcn.100568db
jmp 0x10005d76
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1009df84]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1009da0c]
cmp eax, dword [ecx + 4]
jg 0x10005d91
mov dword [0x1009d99c], 0x1009d9a8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.JSON_file_for_GamejoltGameAPI_not_found_on_disk_or_in_MFX_resources
push str.Couldnt_find_JSON
call fcn.10002720
add esp, 8
mov ecx, dword [ebp - 0xc]
or eax, 0xffffffff
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1005bb75
push 0x1009da0c
call fcn.10056c7f
add esp, 4
cmp dword [0x1009da0c], 0xffffffff
jne 0x10005d4b
push esi
push dword [ebp + 8]
mov ecx, 0x1009d9a8
mov dword [ebp - 4], 1
call fcn.100045e0
push 0x1007f9e0
call fcn.10056bee
push 0x1009da0c
call fcn.10056c2e
add esp, 8
jmp 0x10005d4b