Function at 0x4dc630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a894
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x575054]
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 - 0xc4], ebx
call fcn.004dda40
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.00405910
mov edx, SysReAllocStringLen
mov ecx, eax
call fcn.004bd2a0
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x4dc838
test esi, esi
je 0x4dc838
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0xc
lea ecx, [ebp - 0x30]
call fcn.00403fa0
lea ecx, [ebp - 0x30]
call fcn.004058d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xec]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0xcc]
movlpd qword [ebp - 0xcc], xmm0
push eax
push dword [ebp - 0x18]
movlpd qword [ebp - 0xec], xmm0
movlpd qword [ebp - 0xe4], xmm0
call fcn.004dcdf0
test al, al
je 0x4dc7a4
mov ebx, dword [ebp - 0xcc]
mov ecx, ebx
mov eax, dword [ebp - 0xc8]
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x4dc79e
jb 0x4dc73e
cmp ecx, 0x4ffffe
ja 0x4dc79e
lea eax, [ebp - 0xbd]
mov byte [ebp - 0xbd], 0
push eax
push ebx
lea ecx, [ebp - 0x30]
call fcn.00464080
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0
call fcn.00403360
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 - 0xc8]
ja 0x4dc79e
jb 0x4dc788
cmp eax, ebx
jae 0x4dc79e
mov byte [ebp - 0xbd], cl
lea ecx, [ebp - 0xbd]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00464080
mov ebx, dword [ebp - 0xc4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
call fcn.00403360
lea ecx, [ebp - 0x30]
lea esi, [eax + 4]
call fcn.00403360
mov dword [ebp - 0x18], eax
mov ecx, dword [eax]
cmp ecx, dword [esi]
je 0x4dc829
push 0xc
lea ecx, [ebp - 0xd8]
call fcn.00403fa0
lea ecx, [ebp - 0xd8]
call fcn.004058d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
call fcn.0050a7d0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
mov esi, dword [esi]
sub esi, dword [eax]
call fcn.00403360
lea ecx, [ebp - 0xd8]
push ecx
push esi
mov eax, dword [eax]
lea ecx, [ebp - 0xbc]
push eax
call fcn.004620c0
test al, al
jne 0x4dc858
mov byte [ebx], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd8]
call fcn.0044ebc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0044ebc0
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.0050f27d
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0xd8]
call fcn.00403360
lea ecx, [ebp - 0xd8]
lea esi, [eax + 4]
call fcn.00403360
mov ecx, dword [esi]
xor edx, edx
sub ecx, dword [eax]
mov eax, ecx
mov ecx, 0x3e8
div ecx
mov esi, eax
mov dword [ebp - 0xc8], esi
test edx, edx
jne 0x4dc817
test esi, esi
je 0x4dcc1f
xorps xmm0, xmm0
mov dword [ebp - 0x1c], edx
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
push eax
push esi
mov ecx, eax
call fcn.004dd490
lea ecx, [ebp - 0xd8]
call fcn.00403360
mov ecx, dword [eax]
imul eax, esi, 0x3e8
push eax
push ecx
push dword [ebp - 0x24]
call sub.VCRUNTIME140.dll_memcpy
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 0x4dc954
xor esi, esi
nop word [eax + eax]
cmp dword [ebx + esi], 0x23ab45db
jne 0x4dc9a3
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 0x4dc900
mov esi, dword [ebp - 0xc8]
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 0x4dca23
mov dword [ebp - 0x18], 0x2762762
call fcn.00402330
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00403610
add esp, 8
mov eax, dword [eax]
cmp esi, eax
ja 0x4dcc44
jmp 0x4dca1b
mov ecx, dword [ebp - 0xc4]
mov byte [ecx], 1
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x4dc81a
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 0x4dc9f7
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4dc9f7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.0050f64c
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x4dc81a
push esi
mov ecx, edi
call fcn.004dd250
lea ecx, [ebp - 0x9c]
call fcn.004daa80
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 0x4dcb86
xor eax, eax
mov dword [ebp - 0xc8], eax
nop
add eax, 4
add esi, eax
push esi
call fcn.004035e0
add esp, 4
lea ecx, [ebp - 0x9c]
push eax
push esi
call fcn.004033d0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0xc8]
add ecx, 0x284
add esi, ecx
push esi
call fcn.004035e0
add esp, 4
lea ecx, [ebp - 0x84]
push eax
push esi
call fcn.004033d0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc8]
mov eax, dword [ecx + edx + 0x3cc]
lea esi, [edx + 0x384]
mov dword [ebp - 0x54], eax
add esi, ecx
mov eax, dword [ecx + edx + 0x3d0]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + edx + 0x3d4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + edx + 0x3d8]
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + edx + 0x3dc]
mov dword [ebp - 0x44], eax
mov eax, dword [ecx + edx + 0x3e0]
push esi
mov dword [ebp - 0x40], eax
call fcn.004035e0
add esp, 4
lea ecx, [ebp - 0x6c]
push eax
push esi
call fcn.004033d0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0xc8]
mov eax, dword [ecx + esi + 0x3e4]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 4]
mov byte [ebp - 0x38], 0
cmp dword [edi + 8], eax
je 0x4dcb40
push eax
push 0x68
call fcn.00402320
add esp, 8
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, eax
call fcn.004db4d0
add dword [edi + 4], 0x68
jmp 0x4dcb4f
lea ecx, [ebp - 0x9c]
push ecx
push eax
mov ecx, edi
call fcn.004dd840
mov ecx, dword [ebp - 0x20]
add esi, 0x3e8
mov dword [ebp - 0xc8], 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 - 0xc8]
jb 0x4dca60
mov ecx, dword [ebp - 0xc4]
mov byte [ecx], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call fcn.004032a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
call fcn.004032a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9c]
call fcn.004032a0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x4dcc1f
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 0x4dcc00
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4dcc00
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.0050f64c
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 - 0xd8]
call fcn.0044ebc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0044ebc0
mov al, 1
jmp 0x4dc83a
call fcn.00406420
int3