Function at 0x401000
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [0x40e830], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
lea eax, [ebp - 0x574]
push 0x104
push eax
push dword [0x40e830]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ebx, ebx
lea eax, [ebp - 0x574]
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
je 0x401211
push esi
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x50]
push 0x40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx esi, word [ebp - 0x32]
movzx eax, word [ebp - 0x34]
push ebx
push ebx
shl esi, 0x10
push ebx
push edi
or esi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x401207
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4011fe
add esi, eax
push 0x420
push ebx
movzx eax, word [esi + 2]
add eax, esi
mov dword [ebp + 8], eax
lea eax, [ebp - 0x470]
push eax
call fcn.004069e0
mov eax, dword [esi + 6]
add esp, 0xc
mov dword [ebp - 0x470], eax
mov eax, dword [esi + 0xa]
mov dword [ebp - 0x46c], eax
mov ax, word [esi + 4]
test al, 1
mov word [ebp - 0x468], ax
lea edi, [esi + 0x12]
je 0x401110
lea eax, [ebp - 0x460]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
test byte [esi + 4], 2
je 0x40112f
lea eax, [ebp - 0x35c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
test byte [esi + 4], 4
je 0x40114e
lea eax, [ebp - 0x258]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
test byte [esi + 4], 8
je 0x401169
lea eax, [ebp - 0x154]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
call fcn.004016bc
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x464], eax
call fcn.00401f2f
test eax, eax
je 0x4011e9
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x470]
push eax
xor ecx, ecx
call fcn.004019aa
test eax, eax
je 0x4011a3
lea ecx, [ebp - 0x470]
call fcn.00401219
test byte [ebp - 0x468], 0x20
je 0x4011e9
mov esi, dword [sym.imp.SHELL32.dll_DragQueryFileA]
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x464]
call esi
mov edi, eax
cmp edi, ebx
jle 0x4011e9
lea eax, [ebp - 0x678]
push 0x104
push eax
push ebx
push dword [ebp - 0x464]
call esi
lea ecx, [ebp - 0x678]
call fcn.00401310
inc ebx
cmp ebx, edi
jl 0x4011c4
push dword [ebp - 0x464]
call dword [sym.imp.SHELL32.dll_DragFinish]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret 0x10