Function at 0x4a5750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cda3e
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x50f880]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x4a57f8
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], edi
mov word [ebp - 0x34], dx
lea esi, [eax + 2]
jmp 0x4a57b0
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x4a57b0
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00417a80
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x34]
push eax
add ecx, 0x24
mov byte [ebp - 4], 1
call fcn.00415bc0
mov ebx, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x20], ebx
jb 0x4a57fd
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00453bd6
add esp, 4
jmp 0x4a57fd
mov ebx, 8
mov edx, dword [ebp - 0x54]
push 0x4e9708
add edx, 0x24
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.0043bbb0
add esp, 0xc
mov ecx, eax
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.0043bca0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x20], ebx
jb 0x4a5838
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00453bd6
add esp, 4
mov eax, dword [ebp - 0x50]
xor edx, edx
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], edi
mov word [ebp - 0x34], dx
cmp dword [ebp - 0x3c], ebx
jae 0x4a5853
lea eax, [ebp - 0x50]
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4a5875
call fcn.0041a760
jmp 0x4a587a
mov dword [ebp - 0x60], eax
xor eax, eax
mov ebx, dword [ebp - 0x54]
add ebx, 8
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], edi
jb 0x4a588d
mov ecx, dword [ebx]
jmp 0x4a588f
mov ecx, ebx
xor edx, edx
mov word [ecx], dx
cmp eax, edi
je 0x4a589f
cmp eax, 0xb7
jne 0x4a58db
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x60]
push edi
lea eax, [ebp - 0x58]
push eax
push 2
lea ecx, [ebp - 0x64]
push ecx
push edx
mov dword [ebp - 0x58], edi
call esi
cmp eax, edi
jne 0x4a58d5
call fcn.0041a760
cmp eax, edi
jne 0x4a58db
mov eax, dword [ebp - 0x64]
push eax
push 1
mov ecx, ebx
call fcn.00414eb0
jmp 0x4a58a5
cmp dword [ebp - 0x58], 2
jmp 0x4a58c4
mov ecx, dword [ebp - 0x54]
cmp dword [ecx + 0x18], edi
je 0x4a5919
mov ecx, dword [ebx + 0x14]
cmp ecx, 8
jb 0x4a58ef
mov eax, dword [ebx]
jmp 0x4a58f1
mov eax, ebx
mov edx, dword [ebx + 0x10]
lea eax, [eax + edx*2 - 2]
cmp ecx, 8
jb 0x4a5901
mov ecx, dword [ebx]
jmp 0x4a5903
mov ecx, ebx
cmp eax, edi
jne 0x4a590b
xor eax, eax
jmp 0x4a590f
sub eax, ecx
sar eax, 1
push 1
push eax
mov ecx, ebx
call fcn.004175f0
push 0x10044
call fcn.0045401f
add esp, 4
cmp eax, edi
je 0x4a5960
lea edx, [eax + 0x3c]
mov ecx, edx
neg ecx
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
mov dword [eax + 0x20], edi
and ecx, 3
lea esi, [eax + 0x1003c]
add ecx, edx
mov dword [esi], edi
mov dword [eax + 0x10040], edi
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], esi
jmp 0x4a5962
xor eax, eax
lea ecx, [ebp - 0x68]
push ecx
mov edi, eax
call fcn.0043be70
mov edi, dword [ebp - 0x54]
mov ecx, dword [eax]
mov edx, dword [edi]
mov dword [eax], edx
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov ecx, dword [edi + 4]
mov dword [edi + 4], edx
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4a59b7
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4a59b7
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4a59b7
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov esi, 8
mov byte [ebp - 4], 5
cmp dword [ebx + 0x14], esi
jb 0x4a59c7
mov ebx, dword [ebx]
mov edi, dword [edi]
push ebx
call fcn.0043bce0
cmp dword [ebp - 0x3c], esi
jb 0x4a59e0
mov eax, dword [ebp - 0x50]
push eax
call fcn.00453bd6
add esp, 4
mov eax, dword [ebp - 0x60]
xor ecx, ecx
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], cx
test eax, eax
je 0x4a5a02
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4a5a4f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00453be1
mov esp, ebp
pop ebp
ret 4