Function at 0x467cb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b2a0
mov eax, dword fs:[0]
push eax
sub esp, 0x50c
mov eax, dword [0x48d800]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x518], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x518]
call fcn.0044ad80
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x467d05
jmp 0x4681fa
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x467d3d
jmp 0x4681fa
push 0
lea edx, [ebp - 0x248]
push edx
push 0x2a0
lea eax, [ebp - 0x4ec]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x467d8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4f0], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4f0]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4681fa
mov ecx, dword [ebp - 0x4a4]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x4681dd
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x248]
push ecx
push 0x214
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x467e02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x504], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x504]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4681fa
mov eax, dword [ebp - 0x244]
cmp eax, dword [ebp - 0x10]
je 0x467e1d
push 0x24000006
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4681fa
push 0x478324
lea ecx, [ebp - 0x230]
push ecx
call fcn.004058b0
add esp, 8
mov dword [ebp - 0x500], eax
cmp dword [ebp - 0x500], 0
jne 0x467e5a
lea edx, [ebp - 0x230]
push edx
call fcn.00429340
add esp, 4
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
jmp 0x4681cf
push 0x47832c
lea eax, [ebp - 0x230]
push eax
call fcn.004058b0
add esp, 8
mov dword [ebp - 0x500], eax
cmp dword [ebp - 0x500], 0
jne 0x467e97
lea ecx, [ebp - 0x230]
push ecx
call fcn.00429340
add esp, 4
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
jmp 0x4681cf
push 0xa
mov edx, dword [ebp - 0x500]
add edx, 9
push edx
call fcn.00405890
add esp, 8
mov dword [ebp - 0x4fc], eax
cmp dword [ebp - 0x4fc], 0
jne 0x467ec9
mov eax, dword [ebp - 0x500]
add eax, 0xb
mov dword [ebp - 0x4fc], eax
mov ecx, dword [ebp - 0x4fc]
sub ecx, dword [ebp - 0x500]
sub ecx, 9
mov dword [ebp - 0x4f8], ecx
push 0x18
call fcn.0040855c
add esp, 4
mov dword [ebp - 0x508], eax
mov edx, dword [ebp - 0x508]
mov dword [ebp - 0x4f4], edx
push 0x18
push 0
mov eax, dword [ebp - 0x4f4]
push eax
call fcn.00427eb0
add esp, 0xc
mov ecx, dword [ebp - 0x4f8]
push ecx
call fcn.0040858b
add esp, 4
mov dword [ebp - 0x50c], eax
mov edx, dword [ebp - 0x4f4]
mov eax, dword [ebp - 0x50c]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x500]
movsx edx, byte [ecx + 9]
cmp edx, 0x20
jne 0x467f83
mov eax, dword [ebp - 0x4f8]
sub eax, 2
push eax
mov ecx, dword [ebp - 0x500]
add ecx, 0xa
push ecx
mov edx, dword [ebp - 0x4f8]
push edx
mov eax, dword [ebp - 0x4f4]
mov ecx, dword [eax + 4]
push ecx
call fcn.0042957e
add esp, 0x10
mov edx, dword [ebp - 0x4f4]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x4f8]
mov byte [ecx + eax - 2], 0
jmp 0x467fc4
mov edx, dword [ebp - 0x4f8]
sub edx, 1
push edx
mov eax, dword [ebp - 0x500]
add eax, 9
push eax
mov ecx, dword [ebp - 0x4f8]
push ecx
mov edx, dword [ebp - 0x4f4]
mov eax, dword [edx + 4]
push eax
call fcn.0042957e
add esp, 0x10
mov ecx, dword [ebp - 0x4f4]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x4f8]
mov byte [eax + edx - 1], 0
push 0x478338
lea ecx, [ebp - 0x230]
push ecx
call fcn.004058b0
add esp, 8
mov dword [ebp - 0x500], eax
push 0xa
mov edx, dword [ebp - 0x500]
add edx, 5
push edx
call fcn.00405890
add esp, 8
mov dword [ebp - 0x4fc], eax
mov eax, dword [ebp - 0x4fc]
sub eax, dword [ebp - 0x500]
sub eax, 5
mov dword [ebp - 0x4f8], eax
cmp dword [ebp - 0x4f8], 0x2710
jbe 0x468033
lea ecx, [ebp - 0x230]
push ecx
call fcn.00429340
add esp, 4
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
jmp 0x4681cf
mov edx, dword [ebp - 0x4f8]
push edx
call fcn.0040858b
add esp, 4
mov dword [ebp - 0x510], eax
mov eax, dword [ebp - 0x4f4]
mov ecx, dword [ebp - 0x510]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x4f8]
sub edx, 1
push edx
mov eax, dword [ebp - 0x500]
add eax, 5
push eax
mov ecx, dword [ebp - 0x4f8]
push ecx
mov edx, dword [ebp - 0x4f4]
mov eax, dword [edx + 0xc]
push eax
call fcn.0042957e
add esp, 0x10
mov ecx, dword [ebp - 0x4f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x4f8]
mov byte [eax + edx - 1], 0
push 0x478340
lea ecx, [ebp - 0x230]
push ecx
call fcn.004058b0
add esp, 8
mov dword [ebp - 0x500], eax
cmp dword [ebp - 0x500], 0
jne 0x4680c7
lea edx, [ebp - 0x235]
mov dword [ebp - 0x500], edx
push 0xa
mov eax, dword [ebp - 0x500]
add eax, 7
push eax
call fcn.00405890
add esp, 8
mov dword [ebp - 0x4fc], eax
mov ecx, dword [ebp - 0x4fc]
sub ecx, dword [ebp - 0x500]
sub ecx, 7
mov dword [ebp - 0x4f8], ecx
mov edx, dword [ebp - 0x4f8]
push edx
call fcn.0040858b
add esp, 4
mov dword [ebp - 0x514], eax
mov eax, dword [ebp - 0x4f4]
mov ecx, dword [ebp - 0x514]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x4f8]
sub edx, 1
push edx
mov eax, dword [ebp - 0x500]
add eax, 7
push eax
mov ecx, dword [ebp - 0x4f8]
push ecx
mov edx, dword [ebp - 0x4f4]
mov eax, dword [edx + 8]
push eax
call fcn.0042957e
add esp, 0x10
mov ecx, dword [ebp - 0x4f4]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x4f8]
mov byte [eax + edx - 1], 0
mov ecx, dword [ebp - 0x4f4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x518]
cmp dword [eax + 4], 0
jne 0x468184
mov ecx, dword [ebp - 0x518]
mov edx, dword [ebp - 0x4f4]
mov dword [ecx + 8], edx
jmp 0x46818f
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x4f4]
mov dword [eax], ecx
mov edx, dword [ebp - 0x518]
mov eax, dword [edx + 4]
add eax, 1
mov ecx, dword [ebp - 0x518]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x4f4]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x230]
push eax
call fcn.00429340
add esp, 4
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x4f4]
mov dword [ecx + 0x14], eax
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x10], edx
jmp 0x467d96
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x518]
call fcn.0044ad00
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x518]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00427b2d
mov esp, ebp
pop ebp
ret 4