Function at 0x10090860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ad7bd
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x10226180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.1008d880
movzx ecx, al
test ecx, ecx
jne 0x100908a2
xor al, al
jmp 0x10090a8c
push 0
lea edx, [ebp - 0x20]
push edx
push 0x10
mov eax, dword [ebp - 0x1c]
add eax, 0x14c
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xd8
call fcn.100833d0
mov dword [ebp - 4], 0
jmp 0x100908e2
lea ecx, [ebp - 0x38]
call fcn.100831d0
nop
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xd8
call fcn.100833a0
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.10083210
mov byte [ebp - 0xd], al
lea ecx, [ebp - 0x44]
call fcn.10014780
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x10090955
lea ecx, [ebp - 0x38]
call fcn.100831f0
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
call fcn.1008cf90
cmp eax, 4
je 0x10090932
jmp 0x100908d9
mov ecx, dword [ebp - 0x24]
call fcn.1008fe70
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 4
jge 0x10090953
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov dword [edx + ecx*4 + 0x13c], eax
jmp 0x100908d9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.10014780
nop
mov dword [ebp - 0x18], 0
push 0
lea ecx, [ebp - 0x20]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
cmp dword [ebp - 0x18], 0
jle 0x100909fb
mov byte [ebp - 0xe], 0
lea ecx, [ebp - 0x10]
call fcn.100072f0
push eax
lea ecx, [ebp - 0xe]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 1
push edx
lea ecx, [ebp - 0x54]
call fcn.100215f0
nop
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x54]
call fcn.1001a010
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x15c], 0
je 0x100909f2
push 0xf7
push str.C:UsersAKINCIDesktop2383000004.0.RPGuarDv2383_ClientSourceRPGuarDv2383N3BASEN3UIButton.cpp
push 0x101eb5b4
push 0x101eb4b4
call fcn.10051890
add esp, 0x10
lea ecx, [ebp - 0x54]
call fcn.1001a0f0
nop
push 0
lea ecx, [ebp - 0x20]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
cmp dword [ebp - 0x18], 0
jle 0x10090a8a
mov byte [ebp - 0xf], 0
lea ecx, [ebp - 0x11]
call fcn.100072f0
push eax
lea ecx, [ebp - 0xf]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 1
push edx
lea ecx, [ebp - 0x64]
call fcn.100215f0
nop
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x64]
call fcn.1001a010
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x160], 0
je 0x10090a81
push 0x100
push 0x101eb4c8
push 0x101eb52c
push 0x101eb538
call fcn.10051890
add esp, 0x10
lea ecx, [ebp - 0x64]
call fcn.1001a0f0
nop
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4