Function at 0x1001ae70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014f39b
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp - 0x78]
call fcn.1001a800
movzx eax, al
test eax, eax
jne 0x1001aeb4
xor al, al
jmp 0x1001b180
push 0xc
lea ecx, [ebp - 0x24]
call fcn.10001980
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x78]
call fcn.1001a5e0
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x14]
call fcn.10001980
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x24]
call fcn.100046b0
jmp 0x1001aef1
lea ecx, [ebp - 0x14]
call fcn.1000a3f0
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x24]
call fcn.1000a150
push eax
lea ecx, [ebp - 0x14]
call fcn.1000a410
movzx ecx, al
test ecx, ecx
je 0x1001b16a
lea ecx, [ebp - 0x14]
call fcn.10001f50
push eax
lea ecx, [ebp - 0x3c]
call fcn.10003060
mov byte [ebp - 4], 1
push str.logins.json
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.1000aef0
add esp, 0xc
mov byte [ebp - 4], 2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xac], esp
lea edx, [ebp - 0x54]
push edx
call fcn.10003060
mov dword [ebp - 0xa0], eax
call fcn.1007c400
add esp, 0x18
mov byte [ebp - 0x72], al
movzx eax, byte [ebp - 0x72]
test eax, eax
jne 0x1001af8c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.10002d10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.10002d10
jmp 0x1001aee9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa8], esp
lea edx, [ebp - 0x3c]
push edx
call fcn.10003060
mov dword [ebp - 0xb0], eax
lea ecx, [ebp - 0xcc]
call fcn.1007baa0
add esp, 0x18
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x94]
call fcn.1000c9b0
push eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x60]
call edx
add esp, 4
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.1000cd00
cmp dword [ebp - 0x8c], 0
je 0x1001b01c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.10002d10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.10002d10
jmp 0x1001aee9
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
lea ecx, [ebp - 0x54]
call fcn.10001960
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0xffffffff
jne 0x1001b063
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.10002d10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.10002d10
jmp 0x1001aee9
push 0
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
add ecx, 1
push ecx
call fcn.10141f46
add esp, 4
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x70], edx
cmp dword [ebp - 0x70], 0
je 0x1001b0be
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.1000ccc0
mov byte [ebp - 4], 4
mov edx, dword [ebp + 8]
push edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x9c], esp
lea eax, [ebp - 0x6c]
push eax
call fcn.1000c9d0
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0x78]
call fcn.1001b1a0
cmp dword [ebp - 0x70], 0
je 0x1001b12f
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp dword [ebp - 0x80], 0
jne 0x1001b11f
mov dword [ebp - 0x88], 0
jmp 0x1001b12f
mov dword [ebp - 0x70], 0x8123
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x78]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.1000cd00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.10002d10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.10002d10
jmp 0x1001aee9
mov byte [ebp - 0x71], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.1000a130
mov al, byte [ebp - 0x71]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret 4