Function at 0x4d7180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fe496
mov eax, dword fs:[0]
push eax
mov eax, 0x8009c
call fcn.004da5e0
mov eax, dword [0x65b500]
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 esi, ecx
mov dword [ebp - 0x80068], esi
lea eax, [esi + 0x2ac]
push eax
mov dword [ebp - 0x80064], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x250]
test eax, eax
je 0x4d723a
push eax
call fcn.004da3d2
add esp, 4
mov dword [esi + 0x250], 0
mov dword [esi + 0x240], 0
mov dword [esi + 0x244], 0
mov dword [esi + 0x248], 0
mov dword [esi + 0x24c], 0
mov dword [esi + 0x258], 0
mov dword [esi + 0x25c], 0
mov dword [esi + 0x260], 0
mov dword [esi + 0x264], 0
lea eax, [esi + 0x268]
mov ecx, esi
push 1
push eax
call fcn.004d53e0
lea eax, [esi + 0x278]
mov ecx, eax
mov dword [ebp - 0x80070], eax
call fcn.0042aff0
lea eax, [ebp - 0x8007c]
mov dword [esi + 0x290], 0
push eax
mov ecx, esi
mov dword [esi + 0x294], 0
mov dword [ebp - 0x8007c], 0x11
mov dword [ebp - 0x80078], 0
call fcn.004d7a60
mov eax, dword [ebp - 0x8007c]
push dword [esi + 0x200]
mov dword [esi + 0x2a0], eax
mov eax, dword [ebp - 0x80078]
mov dword [esi + 0x2a4], eax
call fcn.004da60d
movzx edi, word [esi + 0xb]
add esp, 4
mov ebx, dword [esi + 0x200]
mov dword [ebp - 0x8006c], eax
mov dword [esi + 0x204], eax
push dword [esi + 0x34]
movzx eax, byte [esi + 0xd]
push dword [esi + 0x30]
cdq
push edx
push eax
call fcn.004da850
mov esi, eax
mov dword [ebp - 0x80098], 0
push edx
mov eax, edi
xorps xmm0, xmm0
cdq
push esi
push edx
push eax
movlpd qword [ebp - 0x800a8], xmm0
call fcn.004da850
mov dword [ebp - 0x800a0], eax
mov ecx, edi
lea eax, [ebp - 0x800a8]
mov dword [ebp - 0x8009c], edx
push eax
lea eax, [ebp - 0x80078]
xor edx, edx
push eax
mov eax, ebx
div ecx
sub ebx, edx
push ebx
mov ebx, dword [ebp - 0x80068]
push dword [ebp - 0x8006c]
push dword [ebx + 0x208]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebx + 0x204]
mov ecx, ebx
call fcn.004d6dc0
test eax, eax
jne 0x4d7364
mov eax, dword [ebp - 0x80064]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4d7a23
push 0
push 0
push 0x80
push dword [ebx + 0x204]
mov ecx, ebx
call fcn.004d6330
test eax, eax
je 0x4d7352
cmp byte [eax + 8], 0
jne 0x4d7389
mov eax, dword [eax + 0x10]
jmp 0x4d738c
mov eax, dword [eax + 0x30]
mov esi, dword [ebx + 0x200]
xor edx, edx
div esi
mov ecx, dword [ebx + 0x270]
add ebx, 0x268
mov edi, eax
mov edx, edi
shr edx, 1
sub ecx, dword [ebx]
add edx, edi
sar ecx, 2
cmp edx, ecx
jbe 0x4d73d3
cmp edx, 0x3fffffff
ja 0x4d7a3f
push edx
mov ecx, ebx
call fcn.004d8ef0
mov eax, dword [ebp - 0x80068]
mov esi, dword [eax + 0x200]
push esi
call fcn.004da60d
mov dword [ebp - 0x80078], eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x80038], 0
mov dword [ebp - 0x80034], 7
mov word [ebp - 0x80048], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x80020], eax
mov dword [ebp - 0x8001c], 0xf
mov byte [ebp - 0x80030], al
xor esi, esi
mov byte [ebp - 4], 1
test edi, edi
je 0x4d746c
mov eax, dword [ebp - 0x80068]
push 0
push dword [eax + 0x2c8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4d746c
mov eax, dword [ebx + 4]
mov dword [ebp - 0x8006c], 0
cmp dword [ebx + 8], eax
je 0x4d7458
mov dword [eax], 0
add dword [ebx + 4], 4
jmp 0x4d7467
lea ecx, [ebp - 0x8006c]
push ecx
push eax
mov ecx, ebx
call fcn.004d3d70
inc esi
cmp esi, edi
jb 0x4d7422
mov esi, dword [ebp - 0x80068]
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x80060], xmm0
movlpd qword [ebp - 0x80058], xmm0
mov eax, dword [esi + 0x290]
mov dword [ebp - 0x80050], eax
mov eax, dword [esi + 0x294]
mov dword [ebp - 0x8004c], eax
lea eax, [ebp - 0x80088]
push eax
push 0x80008
lea eax, [ebp - 0x80018]
push eax
push 0x18
lea eax, [ebp - 0x80060]
push eax
push 0x900b3
push dword [esi + 0x208]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4d78e1
nop dword [eax]
nop dword [eax + eax]
push 0
push dword [esi + 0x2c8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4d78e1
mov eax, dword [ebp - 0x80088]
lea ecx, [ebp - 0x80018]
lea esi, [ebp - 0x80010]
add eax, ecx
mov ecx, esi
mov dword [ebp - 0x8006c], esi
mov dword [ebp - 0x80094], eax
cmp ecx, eax
jae 0x4d788c
mov edi, dword [esi + 8]
push 0xc
call fcn.004da3a2
mov ecx, eax
add esp, 4
mov dword [ebp - 0x8008c], ecx
test ecx, ecx
je 0x4d754f
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
jmp 0x4d7551
xor ecx, ecx
mov eax, dword [ebx]
lea edx, [edi*4]
mov dword [ebp - 0x8008c], edx
mov dword [edx + eax], ecx
mov eax, dword [ebx]
mov ecx, dword [edx + eax]
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
lea eax, [esi + 0x3c]
movzx ebx, word [esi + 0x38]
mov ecx, dword [ebp - 0x80034]
shr ebx, 1
mov dword [ebp - 0x80064], eax
mov dword [ebp - 0x80074], ecx
cmp ebx, ecx
ja 0x4d75c1
cmp ecx, 8
mov dword [ebp - 0x80038], ebx
lea esi, [ebx + ebx]
push esi
lea edi, [ebp - 0x80048]
cmovae edi, dword [ebp - 0x80048]
push eax
push edi
call fcn.005c4df0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov edi, dword [ebp - 0x80048]
jmp 0x4d7660
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
mov esi, ebx
sub eax, edx
or esi, 7
cmp ecx, eax
jbe 0x4d75dc
mov esi, SysReAllocString
jmp 0x4d75e4
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x80048]
call fcn.0040bcb0
mov dword [ebp - 0x80034], esi
mov edi, eax
lea esi, [ebx + ebx]
mov dword [ebp - 0x80038], ebx
push esi
push dword [ebp - 0x80064]
push edi
call fcn.005c4870
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0x80074]
cmp eax, 8
jb 0x4d765a
mov ecx, dword [ebp - 0x80048]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d7650
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d7a44
push edx
push ecx
call fcn.004da0c6
add esp, 8
mov dword [ebp - 0x80048], edi
cmp dword [ebp - 0x80038], 0
je 0x4d7720
cmp dword [ebp - 0x80034], 8
lea eax, [ebp - 0x80048]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
cmovae eax, edi
push eax
push 0
push 0xfde9
call ebx
mov ecx, dword [ebp - 0x80020]
mov esi, eax
lea edx, [esi - 1]
cmp edx, ecx
ja 0x4d76c6
cmp dword [ebp - 0x8001c], 0x10
lea ecx, [ebp - 0x80030]
mov dword [ebp - 0x80020], edx
cmovae ecx, dword [ebp - 0x80030]
mov byte [ecx + edx], 0
jmp 0x4d76d6
sub edx, ecx
lea ecx, [ebp - 0x80030]
push 0
push edx
call fcn.00411490
cmp dword [ebp - 0x80020], 0
jbe 0x4d7a49
cmp dword [ebp - 0x8001c], 0x10
lea eax, [esi - 1]
push 0
push 0
push eax
lea edx, [ebp - 0x80030]
cmovae edx, dword [ebp - 0x80030]
lea ecx, [ebp - 0x80048]
cmp dword [ebp - 0x80034], 8
push edx
cmovae ecx, dword [ebp - 0x80048]
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call ebx
cmp dword [ebp - 0x8001c], 0x10
lea eax, [ebp - 0x80030]
mov ecx, dword [ebp - 0x80020]
cmovae eax, dword [ebp - 0x80030]
xor esi, esi
mov dword [ebp - 0x80090], eax
test eax, eax
je 0x4d7845
test ecx, ecx
jns 0x4d7757
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [ecx + 1]
xor eax, eax
mov ecx, dword [ebp - 0x80070]
mov edi, dword [ecx + 8]
lea ebx, [ecx + 8]
mov edx, dword [ebx + 4]
sub edx, edi
mov dword [ebp - 0x80064], esi
sar edx, 3
mov dword [ebp - 0x80074], ebx
mov dword [ebp - 0x80080], edi
test edx, edx
je 0x4d77b9
lea ecx, [edi + 4]
nop dword [eax]
mov edi, dword [ecx]
lea ebx, [esi + edi]
mov esi, dword [ebp - 0x80070]
cmp ebx, dword [esi]
mov esi, dword [ebp - 0x80064]
jbe 0x4d7807
inc eax
add ecx, 8
cmp eax, edx
jb 0x4d7790
mov ebx, dword [ebp - 0x80074]
mov ecx, dword [ebp - 0x80070]
push 0x6682ac
push dword [ecx]
xorps xmm0, xmm0
movlpd qword [ebp - 0x80084], xmm0
call fcn.004da5d2
add esp, 8
mov dword [ebp - 0x80084], eax
test eax, eax
je 0x4d7843
mov ecx, dword [ebp - 0x80080]
mov edi, dword [ebp - 0x80064]
mov edx, dword [ebx + 4]
lea esi, [ecx + eax]
add ecx, edi
mov dword [ebp - 0x80080], ecx
cmp dword [ebx + 8], edx
je 0x4d781e
mov dword [edx], eax
mov dword [edx + 4], ecx
add dword [ebx + 4], 8
jmp 0x4d782d
mov ecx, dword [ebp - 0x80080]
mov esi, dword [ecx + eax*8]
add esi, edi
mov dword [ecx + eax*8 + 4], ebx
mov edi, dword [ebp - 0x80064]
jmp 0x4d782d
lea eax, [ebp - 0x80084]
mov ecx, ebx
push eax
push edx
call fcn.00419670
test esi, esi
je 0x4d7845
push edi
push dword [ebp - 0x80090]
push esi
call fcn.005c4df0
add esp, 0xc
jmp 0x4d7845
xor esi, esi
mov ebx, dword [ebp - 0x80068]
mov edx, dword [ebp - 0x8008c]
add ebx, 0x268
mov eax, dword [ebx]
mov eax, dword [edx + eax]
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x8006c]
mov eax, dword [ebx]
mov ecx, dword [esi + 0x34]
mov eax, dword [edx + eax]
shr ecx, 4
not ecx
and ecx, 1
mov dword [eax + 4], ecx
add esi, dword [esi]
mov dword [ebp - 0x8006c], esi
cmp esi, dword [ebp - 0x80094]
jb 0x4d7520
mov eax, dword [ebp - 0x80018]
mov esi, dword [ebp - 0x80068]
mov dword [ebp - 0x80060], eax
mov eax, dword [ebp - 0x80014]
push 0
mov dword [ebp - 0x8005c], eax
lea eax, [ebp - 0x80088]
push eax
push 0x80008
lea eax, [ebp - 0x80018]
push eax
push 0x18
lea eax, [ebp - 0x80060]
push eax
push 0x900b3
push dword [esi + 0x208]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4d74e0
mov eax, dword [ebp - 0x80078]
test eax, eax
je 0x4d78f4
push eax
call fcn.004da3d2
add esp, 4
mov eax, dword [esi + 0x204]
test eax, eax
je 0x4d7911
push eax
call fcn.004da3d2
add esp, 4
mov dword [esi + 0x204], 0
mov eax, dword [esi + 0x250]
test eax, eax
je 0x4d797e
push eax
call fcn.004da3d2
add esp, 4
mov dword [esi + 0x250], 0
mov dword [esi + 0x240], 0
mov dword [esi + 0x244], 0
mov dword [esi + 0x248], 0
mov dword [esi + 0x24c], 0
mov dword [esi + 0x258], 0
mov dword [esi + 0x25c], 0
mov dword [esi + 0x260], 0
mov dword [esi + 0x264], 0
lea eax, [esi + 0x2ac]
mov byte [esi + 0x2c4], 1
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x8001c]
cmp edx, 0x10
jb 0x4d79cc
mov ecx, dword [ebp - 0x80030]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d79c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d7a44
push edx
push ecx
call fcn.004da0c6
add esp, 8
mov edx, dword [ebp - 0x80034]
mov dword [ebp - 0x80020], 0
mov dword [ebp - 0x8001c], 0xf
mov byte [ebp - 0x80030], 0
cmp edx, 8
jb 0x4d7a23
mov ecx, dword [ebp - 0x80048]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d7a19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d7a4e
push edx
push ecx
call fcn.004da0c6
add esp, 8
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.004da36e
mov esp, ebp
pop ebp
ret
call fcn.00408e60
call fcn.005c8d19
call fcn.00411420
call fcn.005c8d19
int3