Function at 0x4dd170
Capabilities:
Get file system object information
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f11d
mov eax, dword fs:[0]
push eax
mov eax, 0x13c4
call fcn.004e4810
mov eax, dword [0x553948]
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
xor edi, edi
mov dword [ebp - 0x13ac], esi
cmp dword [esi + 0xf4], edi
jne 0x4dd1be
mov eax, 0x80004005
jmp 0x4dd858
cmp dword [esi + 0x64], edi
jne 0x4dd1ca
xor eax, eax
jmp 0x4dd858
mov dword [ebp - 0x13c4], edi
mov dword [ebp - 0x13c0], edi
mov dword [ebp - 0x13bc], edi
push 1
xor eax, eax
push 0x52c5ac
lea ecx, [ebp - 0x105c]
mov dword [ebp - 4], edi
mov dword [ebp - 0x1048], 7
mov dword [ebp - 0x104c], edi
mov word [ebp - 0x105c], ax
call fcn.004063e0
lea ecx, [ebp - 0x13c4]
push ecx
lea edx, [ebp - 0x105c]
push edx
add esi, 0x54
push esi
mov byte [ebp - 4], 1
call fcn.00418d40
add esp, 0xc
cmp dword [ebp - 0x1048], 8
mov esi, eax
mov byte [ebp - 4], 0
jb 0x4dd246
mov eax, dword [ebp - 0x105c]
push eax
call fcn.00406fa9
add esp, 4
xor ebx, ebx
cmp esi, edi
jbe 0x4dd822
mov dword [ebp - 0x13a4], edi
mov dword [ebp - 0x13b0], esi
mov eax, dword [ebp - 0x13a4]
add eax, dword [ebp - 0x13c4]
push 0xffffffffffffffff
xor ecx, ecx
push edi
mov word [ebp - 0x105c], cx
push eax
lea ecx, [ebp - 0x105c]
mov dword [ebp - 0x1048], 7
mov dword [ebp - 0x104c], edi
call fcn.00406a40
mov byte [ebp - 4], 2
cmp dword [ebp - 0x104c], edi
jne 0x4dd2c1
cmp dword [ebp - 0x1048], 8
mov byte [ebp - 4], 0
jb 0x4dd80f
mov edx, dword [ebp - 0x105c]
push edx
call fcn.00406fa9
add esp, 4
jmp 0x4dd80f
push edi
lea eax, [ebp - 0x105c]
push edi
push eax
call fcn.004172b0
add esp, 0xc
test al, al
jne 0x4dd2fa
cmp dword [ebp - 0x1048], 8
mov byte [ebp - 4], al
jb 0x4dd80f
mov ecx, dword [ebp - 0x105c]
push ecx
call fcn.00406fa9
add esp, 4
jmp 0x4dd80f
mov eax, dword [ebp - 0x105c]
mov esi, 8
cmp dword [ebp - 0x1048], esi
jae 0x4dd313
lea eax, [ebp - 0x105c]
push edi
push edi
push edi
lea edx, [ebp - 0x105c]
push edx
push eax
lea ecx, [ebp - 0x109c]
call fcn.00467a40
lea ecx, [ebp - 0x109c]
mov byte [ebp - 4], 3
call fcn.004620c0
test al, al
jne 0x4dd37e
lea ecx, [ebp - 0x1098]
mov byte [ebp - 4], 4
call fcn.00417480
lea ecx, [ebp - 0x109c]
mov byte [ebp - 4], 2
call fcn.00417480
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1048], esi
jb 0x4dd80f
mov eax, dword [ebp - 0x105c]
push eax
call fcn.00406fa9
add esp, 4
jmp 0x4dd80f
lea ecx, [ebp - 0x105c]
push edi
push ecx
call fcn.00490940
add esp, 8
test al, al
jne 0x4dd3b5
lea ecx, [ebp - 0x1098]
mov byte [ebp - 4], 5
call fcn.00417480
lea ecx, [ebp - 0x109c]
mov byte [ebp - 4], 2
call fcn.00417480
jmp 0x4dd800
mov eax, dword [ebp - 0x105c]
cmp dword [ebp - 0x1048], esi
jae 0x4dd3c9
lea eax, [ebp - 0x105c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4dd7f1
mov edx, dword [ebp - 0x13ac]
mov eax, dword [edx + 0xf4]
lea edx, [ebp - 0x1394]
push edx
lea edx, [ebp - 0x13a8]
push edx
push edi
mov dword [ebp - 0x1394], edi
mov dword [ebp - 0x13a8], edi
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x40]
call eax
test eax, eax
js 0x4dd5ff
mov eax, dword [ebp - 0x1394]
cmp eax, edi
je 0x4dd605
push 0x30
lea ecx, [ebp - 0x1040]
push edi
push ecx
call fcn.004e41d0
mov eax, dword [ebp - 0x105c]
add esp, 0xc
mov dword [ebp - 0x1040], 0x37050003
mov dword [ebp - 0x1038], 1
mov dword [ebp - 0x1028], edi
mov dword [ebp - 0x1018], edi
cmp dword [ebp - 0x1048], esi
jae 0x4dd464
lea eax, [ebp - 0x105c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, edi
je 0x4dd47f
mov dword [ebp - 0x1030], 0x3704001f
mov dword [ebp - 0x1028], eax
push 0x2b0
lea edx, [ebp - 0x138c]
push edi
push edx
mov dword [ebp - 0x1390], edi
call fcn.004e41d0
mov eax, dword [ebp - 0x105c]
add esp, 0xc
cmp dword [ebp - 0x1048], esi
jae 0x4dd4ae
lea eax, [ebp - 0x105c]
push 0x200
push 0x2b4
lea ecx, [ebp - 0x1390]
push ecx
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4dd4e1
lea edx, [ebp - 0x1384]
mov dword [ebp - 0x1020], 0x3001001f
mov dword [ebp - 0x1018], edx
mov eax, dword [ebp - 0x1394]
lea edx, [ebp - 0x13a0]
push edx
lea edx, [ebp - 0x1040]
push edx
mov dword [ebp - 0x13a0], edi
mov ecx, dword [eax]
push 3
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
js 0x4dd5ff
mov eax, dword [ebp - 0x13a0]
cmp eax, edi
je 0x4dd5ff
mov dword [ebp - 0x1398], edi
cmp dword [eax], edi
jbe 0x4dd5ed
xor ebx, ebx
jmp 0x4dd530
cmp dword [ebx + eax + 0xc], 0x80040103
mov ecx, dword [ebx + eax + 4]
mov edx, dword [ebx + eax + 8]
mov dword [ebp - 0x13d0], ecx
mov dword [ebp - 0x13cc], edx
jne 0x4dd5d0
mov eax, dword [ebp - 0x1028]
push eax
call fcn.004def50
mov ecx, dword [ebp - 0x1018]
push ecx
mov edi, eax
call fcn.004def50
add esp, 8
mov esi, eax
test edi, edi
je 0x4dd5bb
test esi, esi
je 0x4dd5b2
mov eax, dword [ebp - 0x1394]
push 0
lea ecx, [ebp - 0x1040]
push ecx
mov dword [ebp - 0x1030], 0x3704001e
mov dword [ebp - 0x1028], edi
mov dword [ebp - 0x1020], 0x3001001e
mov dword [ebp - 0x1018], esi
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push 3
push eax
call edx
push edi
call fcn.00402d0e
add esp, 4
test esi, esi
je 0x4dd5c8
push esi
call fcn.00402d0e
add esp, 4
mov eax, dword [ebp - 0x13a0]
xor edi, edi
mov ecx, dword [ebp - 0x1398]
inc ecx
add ebx, 0xc
mov dword [ebp - 0x1398], ecx
cmp ecx, dword [eax]
jb 0x4dd530
mov esi, 8
mov ecx, dword [ebp - 0x13ac]
mov ecx, dword [ecx + 0xc4]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [ebp - 0x1394]
mov dword [ebp - 0x139c], edi
cmp eax, edi
je 0x4dd7d1
mov ecx, dword [eax]
lea edx, [ebp - 0x139c]
push edx
push 3
push 1
push 0x53a8f0
push 0x37010102
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, edi
jl 0x4dd7cb
cmp dword [ebp - 0x139c], edi
je 0x4dd7cb
mov eax, dword [ebp - 0x105c]
cmp dword [ebp - 0x1048], esi
jae 0x4dd658
lea eax, [ebp - 0x105c]
push edi
push edi
push edi
push edi
push eax
lea ecx, [ebp - 0x10dc]
call fcn.00467a40
lea ecx, [ebp - 0x10dc]
mov byte [ebp - 4], 6
call fcn.004620c0
test al, al
je 0x4dd785
lea ecx, [ebp - 0x10dc]
push ecx
lea ecx, [ebp - 0x109c]
call fcn.00465e90
test al, al
je 0x4dd785
push 0x1000
lea edx, [ebp - 0x1010]
push edi
push edx
xor ebx, ebx
call fcn.004e41d0
mov edx, dword [ebp - 0x10dc]
add esp, 0xc
push edi
lea eax, [ebp - 0x1398]
push eax
push 0x1000
lea ecx, [ebp - 0x1010]
push ecx
push edx
mov dword [ebp - 0x1398], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4dd791
nop
mov eax, dword [ebp - 0x1398]
cmp eax, edi
je 0x4dd791
lea esi, [ebp - 0x1010]
jmp 0x4dd700
mov ecx, dword [ebp - 0x139c]
lea ebx, [ebp - 0x13b4]
push ebx
push eax
mov dword [ebp - 0x13b4], edi
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push esi
push ecx
call eax
mov ecx, dword [ebp - 0x13b4]
mov ebx, eax
cmp ecx, edi
je 0x4dd78c
mov eax, dword [ebp - 0x1398]
cmp ecx, eax
ja 0x4dd78c
cmp ebx, edi
jl 0x4dd791
sub eax, ecx
add esi, ecx
mov dword [ebp - 0x1398], eax
cmp eax, edi
ja 0x4dd700
push 0x1000
lea ecx, [ebp - 0x1010]
push edi
push ecx
call fcn.004e41d0
mov ecx, dword [ebp - 0x10dc]
add esp, 0xc
push edi
lea edx, [ebp - 0x1398]
push edx
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4dd6e0
jmp 0x4dd791
mov ebx, 0x8004000c
jmp 0x4dd791
mov ebx, 0x8004000d
mov eax, dword [ebp - 0x139c]
mov edx, dword [eax]
push edi
push eax
mov eax, dword [edx + 0x20]
call eax
mov eax, dword [ebp - 0x139c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x10dc]
mov dword [ebp - 0x139c], edi
mov byte [ebp - 4], 3
call fcn.0044a100
mov eax, dword [ebp - 0x1394]
jmp 0x4dd7d6
mov eax, dword [ebp - 0x1394]
mov ebx, 0x80004005
cmp eax, edi
je 0x4dd7f1
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push edi
push eax
call edx
mov eax, dword [ebp - 0x1394]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x109c]
mov byte [ebp - 4], 2
call fcn.0044a100
lea ecx, [ebp - 0x105c]
mov byte [ebp - 4], 0
call fcn.0040a440
add dword [ebp - 0x13a4], 0x1c
dec dword [ebp - 0x13b0]
jne 0x4dd25c
mov eax, dword [ebp - 0x13c4]
cmp eax, edi
je 0x4dd856
mov ecx, dword [ebp - 0x13a8]
push ecx
mov ecx, dword [ebp - 0x13c0]
lea edx, [ebp - 0x13b8]
push edx
push ecx
push eax
call fcn.00406fc0
mov edx, dword [ebp - 0x13c4]
push edx
call fcn.00406fa9
add esp, 0x14
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 - 0x10]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret