Function at 0x4d3680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5621f0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5d0074]
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 eax, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov ecx, dword [eax + 4]
sub ecx, 0x10
call fcn.0040be70
lea esi, [eax + 0x10]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 1
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x38], 0x57dd44
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], 2
or edi, 0xffffffff
cmp ebx, edi
jne 0x4d3704
xor bl, bl
jmp 0x4d38b8
mov eax, dword [ebp - 0x28]
push 0
cmp dword [eax + 4], 1
jne 0x4d37f3
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
push eax
push 0xa
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push ebx
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d374b
xor bl, bl
jmp 0x4d38b8
cmp dword [ebp - 0x2c], 0xa
je 0x4d3758
xor bl, bl
jmp 0x4d38b8
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4d3914
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x24]
test eax, 0xffff0000
jne 0x4d378e
movzx eax, ax
lea ecx, [ebp - 0x28]
push eax
call fcn.00414050
jmp 0x4d37b0
lea ecx, [ebp - 0x24]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d3794
sub ecx, edx
lea eax, [ebp - 0x24]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004143c0
mov byte [ebp - 4], 5
mov edx, str._aiu_
lea ecx, [ebp - 0x28]
call fcn.004a3af0
test al, al
je 0x4d37ee
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d3894
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x4d38b8
jmp 0x4d3898
xor eax, eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x2c]
push eax
push 5
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d3818
xor bl, bl
jmp 0x4d38b8
cmp dword [ebp - 0x2c], 5
je 0x4d3825
xor bl, bl
jmp 0x4d38b8
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4d391e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x28]
test eax, 0xffff0000
jne 0x4d385b
movzx eax, ax
push eax
call fcn.00414050
jmp 0x4d3861
push eax
call fcn.00495610
mov byte [ebp - 4], 0xa
mov edx, str._aiu_
lea ecx, [ebp - 0x28]
call fcn.004a3af0
test al, al
je 0x4d3898
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d3894
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x4d38b8
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d38b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], 0x57dd44
test eax, eax
je 0x4d38d8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4d38f4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.00520c02
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004143a0
push 0x80004005
call fcn.004143a0
int3