Function at 0x4dc6f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53838d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x59a0a0]
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, ecx
mov dword [ebp - 4], 0
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], esi
push esi
push 0x80
push 3
push esi
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4dc75b
call fcn.004054a0
test eax, eax
jne 0x4dc802
jmp 0x4dc760
mov esi, eax
mov dword [ebp - 0x54], esi
push 2
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], 0xffffff9c
push eax
push 0xffffffffffffff9c
push esi
mov dword [ebp - 0x48], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4dc798
call fcn.004054a0
test eax, eax
jns 0x4dc798
test esi, esi
je 0x4dc802
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4dc802
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push 0x64
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00405210
mov ebx, dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push 0
push eax
push 0x64
push ebx
push esi
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4dc846
call fcn.004054a0
test eax, eax
je 0x4dc84c
test ebx, ebx
je 0x4dc7f5
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x40]
sub eax, ebx
push eax
push ebx
call fcn.00405350
test esi, esi
je 0x4dc800
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4dca8b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4dca87
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4dca8b
cmp dword [ebp - 0x34], 0x64
jne 0x4dc7e2
push 0xa
push 0x55ce94
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00406560
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x3c]
add eax, ecx
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x34], 0
push dword [ebp - 0x34]
cmovae ecx, dword [ebp - 0x2c]
mov byte [ebp - 0x48], 0
push dword [ebp - 0x48]
sub esp, 0xc
push eax
push ecx
mov ecx, ebx
call fcn.00415df0
mov esi, eax
add esp, 0x1c
mov eax, dword [ebp - 0x3c]
cmp esi, eax
jne 0x4dc900
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4dc8ca
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00405350
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
test ebx, ebx
je 0x4dc8ef
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x40]
sub eax, ebx
push eax
push ebx
call fcn.00405350
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4dc800
push eax
jmp 0x4dc7fa
add esi, 0xa
cmp esi, eax
jae 0x4dc99d
nop dword [eax + eax]
mov dl, byte [esi]
mov byte [ebp - 0x2d], dl
lea eax, [edx - 0x30]
cmp al, 9
ja 0x4dc990
mov ecx, dword [edi + 0x10]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x4dc9c0
lea ebx, [ecx + 1]
cmp ebx, 0xfffffffe
ja 0x4dc9c0
cmp dword [edi + 0x14], ebx
jae 0x4dc94c
push ecx
push ebx
mov ecx, edi
call fcn.00406a50
mov dl, byte [ebp - 0x2d]
jmp 0x4dc962
test ebx, ebx
jne 0x4dc964
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x14], 0x10
jb 0x4dc95d
mov eax, dword [edi]
jmp 0x4dc95f
mov eax, edi
mov byte [eax], 0
test ebx, ebx
setne al
test al, al
je 0x4dc990
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x4dc978
mov eax, dword [edi]
jmp 0x4dc97a
mov eax, edi
mov byte [ecx + eax], dl
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x14], 0x10
jb 0x4dc98a
mov eax, dword [edi]
jmp 0x4dc98c
mov eax, edi
mov byte [eax + ebx], 0
inc esi
cmp esi, dword [ebp - 0x3c]
jb 0x4dc910
mov ebx, dword [ebp - 0x40]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], 1
cmp eax, 0x10
jb 0x4dca0a
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x2c]
cmp ecx, 0xffffffff
jbe 0x4dc9ca
call fcn.004a4e3e
push 0x5791cc
call fcn.004980e5
cmp ecx, 0x1000
jb 0x4dca01
test byte [ebp - 0x2c], 0x1f
je 0x4dc9dd
call fcn.004a4e3e
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x4dc9e9
call fcn.004a4e3e
sub eax, ecx
cmp eax, 4
jae 0x4dc9f5
call fcn.004a4e3e
cmp eax, 0x23
jbe 0x4dc9ff
call fcn.004a4e3e
mov eax, ecx
push eax
call fcn.0049aa1d
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 1
test ebx, ebx
je 0x4dca71
mov eax, dword [ebp - 0x38]
sub eax, ebx
cmp eax, 0xffffffff
jbe 0x4dca33
call fcn.004a4e3e
cmp eax, 0x1000
jb 0x4dca68
test bl, 0x1f
je 0x4dca44
call fcn.004a4e3e
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x4dca50
call fcn.004a4e3e
sub ebx, eax
cmp ebx, 4
jae 0x4dca5c
call fcn.004a4e3e
cmp ebx, 0x23
jbe 0x4dca66
call fcn.004a4e3e
mov ebx, eax
push ebx
call fcn.0049aa1d
add esp, 4
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4dca7f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x48]
jmp 0x4dc802
mov ecx, edx
call esi
mov eax, ebx
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.0049aa22
mov esp, ebp
pop ebp
ret