Function at 0x49bac0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0xb00a0
call fcn.004a5b80
push ebx
mov eax, dword [esp + 0xb00ac]
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x49be73
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ebx
push 0x200
push edx
push eax
call fcn.004a5e00
mov ecx, dword [esp + 0xb00c4]
mov dword [esp + 0x20], eax
cmp ecx, ebx
jne 0x49bb37
shr eax, 1
mov dword [esp + 0x20], eax
mov ecx, eax
shr ecx, 7
mov edx, ecx
mov dword [esp + 0x24], ecx
shl edx, 0x10
sub edx, ecx
shl edx, 7
add edx, eax
shl edx, 9
mov ebp, edx
mov edx, ecx
shr ebp, 9
shl edx, 7
add edx, ebp
mov dword [esp + 0x1c], ebp
shl edx, 9
shl eax, 9
cmp eax, edx
jbe 0x49bb6e
inc ebp
mov dword [esp + 0x1c], ebp
cmp ecx, ebx
jbe 0x49bd79
mov ebp, dword [esp + 0xb00c0]
mov ecx, 0x4000
xor eax, eax
lea edi, [esp + 0x30]
mov edx, dword [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, 0x4000
lea edi, [esp + 0x10030]
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
push 0x10000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test ebx, ebx
jne 0x49bbef
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49bbef
mov esi, ebp
lea eax, [esp + 0x8058]
sub esi, eax
lea eax, [esp + edx + 0x8058]
mov edi, ebp
inc edx
mov cl, byte [esi + eax]
mov byte [eax], cl
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x49bbd2
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xb00bc]
xor esi, esi
lea edi, [edx + eax]
mov edx, dword [esp + 0xb00b4]
lea ecx, [esp + 0x10030]
push ecx
push edi
push 0x80
push edx
call fcn.0048f830
add esp, 0x10
test eax, eax
jne 0x49bc35
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jge 0x49be68
jmp 0x49bbff
mov eax, dword [esp + 0xb00c4]
test eax, eax
jne 0x49bc7d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
je 0x49bc96
mov ecx, dword [esp + 0x18]
lea edi, [esp + 0x10030]
lea esi, [esp + 0x30]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x49bcd6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add edx, 0x80
inc ebx
cmp ebx, eax
mov dword [esp + 0x14], edx
jae 0x49bcf1
jmp 0x49bb7d
mov eax, dword [esp + 0xb00c8]
test eax, eax
jne 0x49bc4c
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
shr ecx, 1
cmp eax, ecx
jne 0x49bc4c
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x10030]
lea esi, [esp + 0x7e30]
xor eax, eax
lea ecx, [edx - 0x7e00]
repe cmpsb byte [esi], byte es:[edi]
jne 0x49bcbb
sub dword [esp + 0x14], 0x3f
jmp 0x49bc61
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xec
pop ebx
add esp, 0xb00a0
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xec
pop ebx
add esp, 0xb00a0
ret
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov ecx, 0x4000
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, 0x4000
lea edi, [esp + 0x10030]
test ebp, ebp
rep stosd dword es:[edi], eax
jbe 0x49be87
push eax
mov ecx, ebp
lea eax, [esp + 0x1c]
lea edx, [esp + 0x34]
shl ecx, 9
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xb00bc]
xor esi, esi
lea edi, [eax + ecx]
mov eax, dword [esp + 0xb00b4]
lea edx, [esp + 0x10030]
push edx
push edi
push ebp
push eax
call fcn.0048f830
add esp, 0x10
test eax, eax
jne 0x49be53
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jl 0x49bd44
jmp 0x49be38
mov edx, ebp
xor eax, eax
shl edx, 9
mov ecx, edx
lea edi, [esp + 0x30]
mov ebp, ecx
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [esp + 0x10034]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x1c]
push ecx
push edx
lea edx, [esp + 0x3c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0xb00c0]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49bdfd
mov ebp, esi
lea eax, [esp + 0x8058]
sub ebp, eax
lea eax, [esp + edx + 0x8058]
mov edi, esi
inc edx
mov cl, byte [eax + ebp]
mov byte [eax], cl
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x49bde0
mov edi, dword [esp + 0xb00bc]
mov ebp, dword [esp + 0xb00b4]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10030]
push edx
push edi
push eax
push ebp
call fcn.0048f830
add esp, 0x10
test eax, eax
jne 0x49be53
push 0x64
call ebx
inc esi
cmp esi, 5
jl 0x49be13
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xec
pop ebx
add esp, 0xb00a0
ret
mov ecx, dword [esp + 0x18]
lea edi, [esp + 0x10030]
lea esi, [esp + 0x30]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x49be83
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xec
pop ebx
add esp, 0xb00a0
ret
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb00a0
ret