Function at 0x459ad0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582460
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x634384]
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, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], edi
test edi, edi
jne 0x459b12
mov al, 1
jmp 0x459dc1
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00459df0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0041ba50
push 0
push 0x4020
push 7
push 0x120089
push eax
call fcn.00446030
mov ecx, eax
call fcn.00453000
mov esi, eax
mov dword [ebp - 0x54], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::nt_handle_dtor__struct_Utils::ResourceHolders::puredrop_and_null_t_void___struct_Utils::ResourceHolders::nt_handle_dtor__.0
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], 0x5ec034
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x459d56
cmp esi, 0xffffffff
je 0x459d56
push 0
push 0x20
push 1
push 0x80
push 7
push 0x120116
lea ecx, [ebp - 0x28]
call fcn.0041ba50
push eax
call fcn.00445310
mov edi, eax
mov dword [ebp - 0x4c], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::nt_handle_dtor__struct_Utils::ResourceHolders::puredrop_and_null_t_void___struct_Utils::ResourceHolders::nt_handle_dtor__.0
add esp, 0x1c
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 4
mov dword [ebp - 0x4c], 0x5ec034
mov byte [ebp - 4], 5
test edi, edi
je 0x459d0e
cmp edi, 0xffffffff
je 0x459d0e
lea ecx, [ebp - 0x35]
mov byte [ebp - 0x29], 0
call fcn.00412f80
push eax
lea eax, [ebp - 0x29]
push eax
push 0x10000
lea ecx, [ebp - 0x60]
call fcn.0043e300
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x60]
sub eax, esi
push 0
push ecx
push eax
push esi
push dword [ebp - 0x34]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x459c84
mov edx, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x44]
lea edi, [edx + 4]
mov eax, dword [edx]
push ecx
push esi
push esi
cmp dword [eax], fcn.004772f0
jne 0x459c40
lea ecx, [edx + 4]
call fcn.0057a220
mov edi, dword [ebp - 0x3c]
add edi, 4
jmp 0x459c47
mov ecx, edi
call fcn.00579740
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x30], 0
je 0x459c7b
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x40]
push esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
test ecx, ecx
jne 0x459c23
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x44]
mov byte [ebp - 0x29], 1
mov byte [ebp - 4], 5
test esi, esi
je 0x459cd2
mov ecx, dword [ebp - 0x58]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x459cb3
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459ddf
push ecx
push esi
call fcn.00539070
add esp, 8
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov esi, dword [ebp - 0x34]
mov byte [ebp - 4], 2
mov dword [ebp - 0x4c], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::nt_handle_dtor__struct_Utils::ResourceHolders::puredrop_and_null_t_void___struct_Utils::ResourceHolders::nt_handle_dtor__.0
test edi, edi
je 0x459d4d
cmp edi, 0xffffffff
je 0x459d4d
call fcn.00446030
mov dword [ebp - 0x40], eax
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x459d27
mov eax, dword [eax + 0x64]
test eax, eax
jne 0x459d14
push 1
call ebx
mov dword [ebp - 0x48], 0
jmp 0x459d5a
mov byte [ebp - 0x29], 0
jmp 0x459cd5
push 0xc0000002
call eax
push eax
call ebx
mov dword [ebp - 0x48], 0
jmp 0x459d5a
push edi
call ecx
test eax, eax
je 0x459d4d
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x64]
test ecx, ecx
jne 0x459d47
push 1
call ebx
mov dword [ebp - 0x48], 0
jmp 0x459d5a
push eax
call ecx
push eax
call ebx
mov dword [ebp - 0x48], 0
jmp 0x459d5a
mov byte [ebp - 0x29], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x54], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::nt_handle_dtor__struct_Utils::ResourceHolders::puredrop_and_null_t_void___struct_Utils::ResourceHolders::nt_handle_dtor__.0
test esi, esi
je 0x459da8
cmp esi, 0xffffffff
je 0x459da8
call fcn.00446030
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x459d92
mov eax, dword [eax + 0x64]
test eax, eax
jne 0x459d89
push 1
jmp 0x459da6
push 0xc0000002
call eax
jmp 0x459da5
push esi
call ecx
test eax, eax
je 0x459da8
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x64]
test ecx, ecx
je 0x459d85
push eax
call ecx
push eax
call ebx
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0041ba60
mov al, byte [ebp - 0x29]
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.005395e6
mov esp, ebp
pop ebp
ret 0xc
call fcn.00555b08
int3