Function at 0x599950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac006
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x61de38]
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 ebx, ecx
mov dword [ebp - 0x120], ebx
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push esi
push str.hunt_root
push 0x6278a0
push 0x5f26b0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x360]
mov edi, dword [ebx + 4]
push ecx
mov eax, dword [edi + 4]
push eax
push edi
mov dword [ebp - 0x11c], eax
call fcn.0040d080
mov edx, eax
mov ecx, 0x75074f
mov eax, dword [ebx + 8]
sub ecx, eax
cmp ecx, 1
jb 0x599c02
inc eax
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x11c]
mov dword [edi + 4], edx
mov dword [eax], edx
mov eax, dword [ebx + 4]
mov ebx, dword [eax + 4]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x128], eax
cmp eax, 0xffffffff
jne 0x599a48
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x599b83
lea ecx, [ebx + 0x120]
lea edx, [ebp - 0x128]
call fcn.0040cfb0
test eax, eax
jne 0x599a71
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x599b83
push eax
jmp 0x599b7d
mov edi, dword [ebp - 0x128]
test edi, edi
je 0x599b83
push 0
lea eax, [ebp - 0x11c]
push eax
push 4
lea eax, [ebx + 0x10c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x599b76
cmp dword [ebp - 0x11c], 0
je 0x599b7c
push 0
lea eax, [ebp - 0x12c]
push eax
push 4
lea eax, [ebx + 0x110]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x599b76
cmp dword [ebp - 0x12c], 0
je 0x599b7c
push 0
lea eax, [ebp - 0x130]
push eax
push 4
lea eax, [ebx + 0x114]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x599b76
cmp dword [ebp - 0x130], 0
je 0x599b7c
push 0
lea eax, [ebp - 0x134]
push eax
push 4
lea eax, [ebx + 0x118]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x599b76
cmp dword [ebp - 0x134], 0
je 0x599b7c
push 0
lea eax, [ebp - 0x124]
push eax
push 4
lea eax, [ebx + 0x11c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x599b76
cmp dword [ebp - 0x124], 0
push edi
je 0x599b7d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x120]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi + 7], al
test al, al
jne 0x599b62
mov esi, 1
jmp 0x599ba9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x120]
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
push eax
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
dec dword [edi + 8]
call fcn.0040cee0
xor esi, esi
mov edx, dword [ebp - 0x248]
test edx, edx
je 0x599be2
mov ecx, dword [ebp - 0x240]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x599bd8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x599c0c
push ecx
push edx
call fcn.0055c9a5
add esp, 8
mov eax, esi
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.0055c6fa
mov esp, ebp
pop ebp
ret 8
push str.list_T__too_long
call fcn.0055dbbe
call fcn.00561e63
int3