Function at 0x4dba80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ea311
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push ecx
mov edx, dword [edi + 4]
mov ecx, dword [edi]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xcc], ebx
call fcn.004dd0e0
mov eax, dword [edi]
push 0x80
push 3
push ecx
mov dword [edi + 4], eax
mov ecx, esi
push 0
mov byte [ebx], 0
call fcn.00408e30
mov edx, SysReAllocString
mov ecx, eax
call fcn.004c9b20
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x4dbc7a
test esi, esi
je 0x4dbc7a
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x30]
movq qword [ebp - 0x30], xmm0
call fcn.004141d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xe4]
movlpd qword [ebp - 0xd4], xmm0
push eax
lea eax, [ebp - 0xd4]
movlpd qword [ebp - 0xe4], xmm0
push eax
push dword [ebp - 0x18]
movlpd qword [ebp - 0xdc], xmm0
call fcn.004dc240
test al, al
je 0x4dbbf6
mov ebx, dword [ebp - 0xd4]
mov ecx, ebx
mov eax, dword [ebp - 0xd0]
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x4dbbf0
jb 0x4dbb90
cmp ecx, 0x4ffffe
ja 0x4dbbf0
lea eax, [ebp - 0xc5]
mov byte [ebp - 0xc5], 0
push eax
push ebx
lea ecx, [ebp - 0x30]
call fcn.004c64a0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0
call fcn.00408fc0
push 0
lea ecx, [ebp - 0x18]
push ecx
mov eax, dword [eax]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp ecx, dword [ebp - 0xd0]
ja 0x4dbbf0
jb 0x4dbbda
cmp eax, ebx
jae 0x4dbbf0
mov byte [ebp - 0xc5], cl
lea ecx, [ebp - 0xc5]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.004c64a0
mov ebx, dword [ebp - 0xcc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
call fcn.00408fc0
mov edx, eax
call fcn.0040d2e0
mov ecx, dword [edx]
cmp ecx, dword [eax]
je 0x4dbc6b
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x3c]
movq qword [ebp - 0x3c], xmm0
call fcn.004141d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc4]
call fcn.004e7df0
lea ecx, [ebp - 0x30]
call fcn.00408fc0
mov edx, dword [eax]
lea eax, [ebp - 0x3c]
push eax
call fcn.00414a40
push eax
push edx
lea ecx, [ebp - 0xc4]
call fcn.004e62c0
test al, al
jne 0x4dbc9a
mov byte [ebx], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00414180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00414180
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x3c]
call fcn.00414a40
xor edx, edx
mov ecx, 0x3e8
div ecx
test edx, edx
jne 0x4dbc5c
lea ecx, [ebp - 0x3c]
call fcn.00414a40
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov esi, edx
shr esi, 6
mov dword [ebp - 0xd0], esi
test esi, esi
je 0x4dc069
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
push eax
push esi
mov ecx, eax
call fcn.004dcb10
lea ecx, [ebp - 0x3c]
call fcn.00408fc0
mov ecx, dword [eax]
imul eax, esi, 0x3e8
push eax
push ecx
push dword [ebp - 0x24]
call fcn.005b96a0
mov ebx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x20]
add esp, 0xc
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4dbda4
xor esi, esi
nop word [eax + eax]
cmp dword [ebx + esi], 0x23ab45db
jne 0x4dbdf3
inc dword [ebp - 0x18]
xor eax, eax
mov word [ebx + esi + 0x282], ax
mov word [ebx + esi + 0x382], ax
mov word [ebx + esi + 0x3ca], ax
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x20]
add esi, 0x3e8
mov ebx, dword [ebp - 0x24]
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x18], eax
jb 0x4dbd50
mov esi, dword [ebp - 0xd0]
mov ecx, dword [edi + 8]
mov eax, 0x4ec4ec4f
sub ecx, dword [edi]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jbe 0x4dbe71
mov dword [ebp - 0x18], 0x2762762
call fcn.00407840
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.004093a0
add esp, 8
mov eax, dword [eax]
cmp esi, eax
ja 0x4dc08b
jmp 0x4dbe69
mov ecx, dword [ebp - 0xcc]
mov byte [ecx], 1
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x4dbc5f
mov ecx, dword [ebp - 0x1c]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x4dbe45
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4dc090
push ecx
push esi
call fcn.005b7992
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x4dbc5f
push esi
mov ecx, edi
call fcn.004dc840
lea ecx, [ebp - 0xa4]
call fcn.004d9fc0
mov byte [ebp - 4], 3
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x20]
xor ebx, ebx
mov esi, dword [ebp - 0x24]
sub ecx, esi
imul ecx
mov dword [ebp - 0x18], esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4dbfd6
xor eax, eax
mov dword [ebp - 0xd0], eax
nop dword [eax]
add eax, 4
add esi, eax
push esi
call fcn.00409310
add esp, 4
lea ecx, [ebp - 0xa4]
push eax
push esi
call fcn.00409060
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0xd0]
add ecx, 0x284
add esi, ecx
push esi
call fcn.00409310
add esp, 4
lea ecx, [ebp - 0x8c]
push eax
push esi
call fcn.00409060
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xd0]
mov eax, dword [ecx + edx + 0x3cc]
lea esi, [edx + 0x384]
mov dword [ebp - 0x5c], eax
add esi, ecx
mov eax, dword [ecx + edx + 0x3d0]
mov dword [ebp - 0x58], eax
mov eax, dword [ecx + edx + 0x3d4]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + edx + 0x3d8]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + edx + 0x3dc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + edx + 0x3e0]
push esi
mov dword [ebp - 0x48], eax
call fcn.00409310
add esp, 4
lea ecx, [ebp - 0x74]
push eax
push esi
call fcn.00409060
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0xd0]
mov eax, dword [ecx + esi + 0x3e4]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 4]
mov byte [ebp - 0x40], 0
cmp dword [edi + 8], eax
je 0x4dbf90
push eax
push 0x68
call fcn.00407720
add esp, 8
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, eax
call fcn.004da9b0
add dword [edi + 4], 0x68
jmp 0x4dbf9f
lea ecx, [ebp - 0xa4]
push ecx
push eax
mov ecx, edi
call fcn.004dcee0
mov ecx, dword [ebp - 0x20]
add esi, 0x3e8
mov dword [ebp - 0xd0], esi
mov eax, 0x10624dd3
mov esi, dword [ebp - 0x24]
inc ebx
sub ecx, esi
mov dword [ebp - 0x18], esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
mov eax, dword [ebp - 0xd0]
jb 0x4dbeb0
mov ecx, dword [ebp - 0xcc]
mov byte [ecx], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call fcn.00408ea0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.00408ea0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.00408ea0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x4dc069
mov ecx, dword [ebp - 0x1c]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x4dc04a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4dc095
push ecx
push esi
call fcn.005b7992
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00414180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00414180
mov al, 1
jmp 0x4dbc7c
call fcn.0040d160
call fcn.005c00b0
call fcn.005c00b0
int3