Function at 0x48cd80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [eax]
mov ecx, edi
mov edx, edi
mov dword [ebp - 0x18], 0
mov eax, dword [esi + 0x58]
and ecx, 1
and edx, 2
mov dword [ebp - 0x10], ecx
and edi, 4
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], edi
test eax, 0x200
je 0x48cdc3
mov dword [ebp + 8], 1
test ecx, ecx
jne 0x48cdca
mov dword [ebp + 8], 0
test edx, edx
je 0x48cdeb
test eax, 0x4000000
jne 0x48cdeb
push dword [esi + 0x70]
call fcn.0049da70
add esp, 4
test eax, eax
je 0x48cdeb
mov ebx, 1
jmp 0x48cded
xor ebx, ebx
test dword [esi + 0x58], 0x4000000
je 0x48ce01
test edi, edi
je 0x48ce01
mov edi, 1
jmp 0x48ce03
xor edi, edi
call fcn.0047f130
mov ecx, eax
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
cdq
add eax, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
adc edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov eax, dword [0x654c98]
test eax, eax
je 0x48ce42
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x48ce42
push dword [esi]
call eax
mov edx, dword [ebp + 0xc]
add esp, 4
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x48d130
test ebx, ebx
jne 0x48d11f
test edi, edi
jne 0x48d10e
cmp dword [ebp - 0x10], edi
je 0x48cfdb
test dword [esi + 0x58], 0x400
jne 0x48cfdb
mov eax, dword [esi + 0xe0]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 1
movups xmmword [eax], xmm0
mov dword [eax + 0x10], edi
mov eax, dword [esi + 0xe0]
mov dword [eax + 0x10], esi
lea eax, [esi + 0xd4]
lock inc dword [eax]
or dword [esi + 0x58], 0x400
push esi
call fcn.00490290
add esp, 4
lea eax, [esi + 0x100]
push 0x48a440
push dword [esi + 0xe0]
push 1
push eax
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
mov edi, eax
push edi
call fcn.00590b90
add esp, 4
test eax, eax
jne 0x48cf0b
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x48ceee
call fcn.00596e90
push 6
push 0x6d
push 0xe8
push 3
push dword [eax]
call fcn.00488c00
add esp, 0x14
test eax, eax
je 0x48d140
test edi, edi
jne 0x48cfc0
push 0x668d40
call fcn.0047e9d0
mov ecx, dword [esi + 0xbc]
add esp, 4
cmp esi, dword [0x668d0c]
jne 0x48cf36
mov dword [0x668d0c], ecx
jmp 0x48cf48
mov eax, dword [esi + 0xc0]
mov dword [eax + 0xbc], ecx
mov ecx, dword [0x668d0c]
mov edx, dword [esi + 0xbc]
test edx, edx
je 0x48cf60
mov eax, dword [esi + 0xc0]
mov dword [edx + 0xc0], eax
jmp 0x48cf70
test ecx, ecx
je 0x48cf70
mov eax, dword [esi + 0xc0]
mov dword [ecx + 0xc0], eax
push 0x668d40
mov dword [esi + 0xbc], 0
mov dword [esi + 0xc0], 0
call fcn.0047e9e0
and dword [esi + 0x58], 0xfffffbff
lea ecx, [esi + 0xd4]
add esp, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x48cfb0
push esi
call fcn.00489be0
add esp, 4
or dword [esi + 0x58], 0x100000
push esi
call fcn.00490320
add esp, 4
test dword [esi + 0x58], 0x4000000
je 0x48cfd6
cmp dword [ebp - 0x14], 0
je 0x48cfd6
mov edi, 1
jmp 0x48cfd8
xor edi, edi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
nop
test ebx, ebx
jne 0x48d09f
test edi, edi
jne 0x48d09f
cmp dword [ebp + 0x10], edi
jl 0x48d014
mov edx, dword [ebp - 0x1c]
cmp dword [ebp - 8], edx
ja 0x48d09f
jb 0x48d00c
cmp eax, dword [ebp - 0xc]
jae 0x48d09f
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
jmp 0x48d017
or eax, 0xffffffff
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov eax, dword [esi + 0x58]
test eax, 0x200
je 0x48d037
cmp dword [ebp - 0x10], 0
mov dword [ebp + 8], 1
jne 0x48d03e
mov dword [ebp + 8], 0
cmp dword [ebp - 0x20], 0
je 0x48d061
test eax, 0x4000000
jne 0x48d061
push dword [esi + 0x70]
call fcn.0049da70
add esp, 4
test eax, eax
je 0x48d061
mov ebx, 1
jmp 0x48d063
xor ebx, ebx
test dword [esi + 0x58], 0x4000000
je 0x48d079
cmp dword [ebp - 0x14], 0
je 0x48d079
mov edi, 1
jmp 0x48d07b
xor edi, edi
call fcn.0047f130
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
test ecx, ecx
je 0x48cfe0
mov eax, dword [ebp + 0xc]
mov edi, 1
mov ebx, edi
mov dword [eax], edi
jmp 0x48d0cd
test ecx, ecx
jne 0x48d091
test ebx, ebx
jne 0x48d0bc
test edi, edi
je 0x48d0cb
mov eax, dword [ebp + 0xc]
lea ebx, [ecx + 1]
neg edi
sbb edi, edi
and edi, 4
mov dword [eax], edi
jmp 0x48d0cd
mov eax, dword [ebp + 0xc]
mov edi, 2
mov dword [eax], edi
lea ebx, [edi - 1]
jmp 0x48d0cd
xor ebx, ebx
cmp dword [ebp - 0x18], 0
je 0x48d105
test dword [esi + 0x58], 0x400
je 0x48d105
push dword [esi + 0x60]
call fcn.004988e0
add esp, 4
test dword [esi + 0x58], 0x400
je 0x48d105
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 0xffffffffffffffff
push 0xffffffffffffffff
call edi
test dword [esi + 0x58], 0x400
jne 0x48d0f6
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
shl edi, 2
mov eax, 1
mov dword [edx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 2
mov dword [edx], edi
lea eax, [edi - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov dword [edx], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.cant_read_from_handle:__m
push 0x360000
call fcn.00479f70
int3