Function at 0x5a7b00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74decc
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x8bb040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi]
push 0x44
call fcn.0073298e
mov ebx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebx], 0x7763c8
mov dword [ebx + 4], esi
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov word [ebx + 0x14], 0
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], 0xf
mov byte [ebx + 0x18], al
mov byte [ebp - 4], 1
push 0x21
mov dword [ebx + 0x30], 1
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], eax
call dword [sym.imp.SDL2.dll_SDL_InitSubSystem]
add esp, 8
test eax, eax
js 0x5a7faa
sub esp, 8
mov eax, esp
mov dword [eax], str.FBBackendSDL2::FBBackendSDL2_SDL_Init__
mov dword [eax + 4], 0x27
call fcn.004b4990
push 0x16362004
call dword [sym.imp.SDL2.dll_SDL_AllocFormat]
mov dword [ebx + 0x10], eax
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 4]
mov dword [edi + 4], ebx
test ecx, ecx
je 0x5a7bed
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 4]
lea ebx, [edi + 0x34]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edi + 0x40]
push eax
push ebx
lea eax, [edi + 0x28]
push eax
call edx
mov eax, dword [ebx + 4]
xor ecx, ecx
sub eax, dword [ebx]
sar eax, 3
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
test eax, eax
je 0x5a7df3
jmp 0x5a7c20
mov eax, dword [ebx]
sub esp, 8
mov esi, dword [eax + ecx*8]
mov ebx, dword [eax + ecx*8 + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
mov eax, esp
mov dword [eax], str.maxres
mov dword [eax + 4], 6
lea eax, [ebp - 0x68]
push eax
call fcn.004e28d0
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x5a7c5d
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x5a7c5d
mov ebx, eax
mov esi, ecx
jmp 0x5a7c61
mov eax, ebx
mov ecx, esi
cmp eax, 0x1e0
mov eax, dword [edi + 0x20]
cmovb ebx, dword [0x77d948]
cmp ecx, 0x280
mov dword [ebp - 0x3c], ebx
cmovb esi, dword [0x77d944]
mov dword [ebp - 0x40], esi
cmp eax, dword [edi + 0x24]
je 0x5a7c93
mov dword [eax], esi
mov dword [eax + 4], ebx
add dword [edi + 0x20], 8
jmp 0x5a7ca6
lea ecx, [ebp - 0x40]
push ecx
push eax
lea ecx, [edi + 0x1c]
call fcn.005ac620
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
mov eax, esi
and eax, 0xfffffffe
cmp eax, 0x500
jb 0x5a7cc2
mov eax, ebx
and eax, 0xfffffffe
cmp eax, 0x3c0
jb 0x5a7cc2
mov al, 1
jmp 0x5a7cc4
xor al, al
mov byte [ebp - 0x29], al
lea ecx, [edi + 0x1fc]
lea eax, [ebp - 0x29]
push eax
call fcn.00499850
mov eax, dword [edi + 0x1fc]
lea ecx, [ebp - 0x48]
push dword [edi + 0x208]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0
call fcn.0049aaa0
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x50]
push 0xffffffffffffffff
mov dword [ebp - 0x50], eax
call fcn.0049aaa0
mov eax, dword [ebp - 0x50]
mov edx, 1
mov ecx, dword [ebp - 0x4c]
shl edx, cl
test dword [eax], edx
je 0x5a7d3f
mov eax, dword [edi]
sub esp, 8
mov ecx, dword [eax + 0x10]
mov eax, esp
mov dword [eax], str.hidpi
mov dword [eax + 4], 5
call fcn.00481e10
test al, al
je 0x5a7d3f
mov al, 1
jmp 0x5a7d41
xor al, al
mov byte [ebp - 0x29], al
lea ecx, [edi + 0x20c]
lea eax, [ebp - 0x29]
push eax
call fcn.00499850
mov eax, dword [edi + 0x20c]
lea ecx, [ebp - 0x58]
push dword [edi + 0x218]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 0
call fcn.0049aaa0
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x60]
push 0xffffffffffffffff
mov dword [ebp - 0x60], eax
call fcn.0049aaa0
mov ecx, dword [ebp - 0x5c]
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x60]
test dword [ecx], edx
je 0x5a7dc0
mov ecx, edi
call fcn.0053a4a0
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
mov ecx, edi
mov esi, eax
mov dword [ebp - 0x40], esi
call fcn.0053a4a0
mov ecx, eax
xor edx, edx
mov eax, ebx
div ecx
mov ebx, eax
mov dword [ebp - 0x3c], ebx
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x18]
je 0x5a7dd3
mov dword [eax], esi
mov dword [eax + 4], ebx
add dword [edi + 0x14], 8
jmp 0x5a7de0
lea ecx, [ebp - 0x40]
push ecx
push eax
lea ecx, [edi + 0x10]
call fcn.005ac620
mov ecx, dword [ebp - 0x34]
lea ebx, [edi + 0x34]
inc ecx
mov dword [ebp - 0x34], ecx
cmp ecx, dword [ebp - 0x30]
jb 0x5a7c20
mov ecx, edi
call fcn.005a80e0
mov ecx, edi
call fcn.005aa780
mov eax, dword [edi]
sub esp, 8
mov ecx, dword [eax + 0x10]
mov eax, esp
mov dword [eax], str.grabmouse
mov dword [eax + 4], 9
call fcn.00481e10
mov esi, dword [edi]
push 0x16aecc
mov byte [edi + 0x1f8], al
call fcn.0073298e
add esp, 4
mov dword [ebp - 0x38], eax
push esi
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.0058bdb0
mov esi, eax
mov dword [ebp - 0x38], esi
xor ebx, ebx
mov dword [ebp - 4], 5
xor eax, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov edx, esi
mov ecx, esi
test esi, esi
je 0x5a7e94
push 0x10
call fcn.0073298e
mov dword [ebp - 0x38], eax
xor ecx, ecx
mov ebx, esi
mov dword [ebp - 0x34], ecx
add esp, 4
mov dword [ebp - 0x30], ecx
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], 0x823878
mov dword [eax + 0xc], esi
xor esi, esi
xor edx, edx
mov dword [edi + 0x12c], ebx
mov ebx, dword [edi + 0x130]
mov dword [edi + 0x130], eax
test ebx, ebx
je 0x5a7ed3
mov ecx, edx
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x5a7ed3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov ecx, dword [ebp - 0x34]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x5a7ed3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x5a7ef3
mov ecx, esi
call fcn.0058c410
push 0x16aecc
push esi
call fcn.00732c0f
add esp, 8
mov esi, dword [edi]
push 0x2c
call fcn.0073298e
mov dword [ebp - 0x38], eax
add esp, 4
mov dword [eax], esi
mov ecx, dword [esi + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov byte [eax + 0x10], 0
mov dword [eax + 0x14], 1
mov dword [eax + 0x18], 1
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 1
mov dword [eax + 0x28], 1
mov esi, dword [edi + 0x134]
mov dword [ebp - 0x30], esi
mov dword [edi + 0x134], eax
test esi, esi
je 0x5a7f8e
mov esi, dword [esi + 0xc]
test esi, esi
je 0x5a7f81
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x5a7f81
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x5a7f81
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x2c
push dword [ebp - 0x30]
call fcn.00732c0f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0073297b
mov esp, ebp
pop ebp
ret
push ecx
lea ecx, [ebp - 0x104]
call fcn.00482850
mov edx, str.ERROR:_Couldnt_initialize_SDL:
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x104]
call fcn.004853b0
mov esi, eax
call dword [sym.imp.SDL2.dll_SDL_GetError]
mov edx, eax
mov ecx, esi
call fcn.004853b0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x104]
call fcn.004827e0
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.00488ee0
push 0x8b6788
lea eax, [ebp - 0x6c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3