Function at 0x401f72
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x401f93
movzx eax, byte [ebp - 1]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
test eax, eax
je 0x401f9f
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x401fab
mov byte [ebp - 1], 0
mov byte [ebp - 0x42], 0
movzx eax, byte [ebp - 0x42]
test eax, eax
je 0x401fc3
movzx eax, byte [ebp - 0x42]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x42], al
movzx eax, byte [ebp - 0x42]
test eax, eax
je 0x401fcf
mov byte [ebp - 0x42], 0
movzx eax, byte [ebp - 0x42]
test eax, eax
jne 0x401fdb
mov byte [ebp - 0x42], 0
push 0x105
call fcn.004013bb
pop ecx
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x40200d
movzx eax, byte [ebp - 2]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 2], al
movzx eax, byte [ebp - 2]
test eax, eax
je 0x402019
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
jne 0x402025
mov byte [ebp - 2], 0
mov word [ebp - 0x40], 0xa
push 0x4011ac
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push 0x105
call fcn.004013bb
pop ecx
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x29], 1
movzx eax, byte [ebp - 0x29]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x29], al
movzx eax, byte [ebp - 0x29]
test eax, eax
jne 0x40207c
movzx eax, byte [ebp - 0x29]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x29], al
movzx eax, byte [ebp - 0x29]
test eax, eax
je 0x402088
mov byte [ebp - 0x29], 1
movzx eax, byte [ebp - 0x29]
test eax, eax
jne 0x402094
mov byte [ebp - 0x29], 1
mov byte [ebp - 0x41], 1
movzx eax, byte [ebp - 0x41]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x41], al
movzx eax, byte [ebp - 0x41]
test eax, eax
jne 0x4020b8
movzx eax, byte [ebp - 0x41]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x41], al
movzx eax, byte [ebp - 0x41]
test eax, eax
je 0x4020c4
mov byte [ebp - 0x41], 1
movzx eax, byte [ebp - 0x41]
test eax, eax
jne 0x4020d0
mov byte [ebp - 0x41], 1
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push 0x104
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov word [ebp - 0x20], 0x30
mov byte [ebp - 0x22], 1
movzx eax, byte [ebp - 0x22]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
test eax, eax
jne 0x402110
movzx eax, byte [ebp - 0x22]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
test eax, eax
je 0x40211c
mov byte [ebp - 0x22], 1
movzx eax, byte [ebp - 0x22]
test eax, eax
jne 0x402128
mov byte [ebp - 0x22], 1
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
push 0x104
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
mov byte [ebp - 0x21], 0x1a
mov byte [ebp - 0x21], 0xfb
movsx eax, byte [ebp - 0x21]
inc eax
mov byte [ebp - 0x21], al
mov byte [ebp - 0x15], 0xa
mov byte [ebp - 0x15], 0xc4
movsx eax, byte [ebp - 0x15]
dec eax
mov byte [ebp - 0x15], al
movsx eax, byte [ebp - 0x15]
add eax, 0xf3
mov byte [ebp - 0x15], al
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
call dword [sym.imp.USER32.dll_GetCapture]
push 0
push 1
push 3
push 0
push 0
push 0x80000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x14], eax
mov word [ebp - 0xc], 0x14
mov dword [ebp - 8], 0x1bd
mov dword [ebp - 8], 0x1f
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
push 0
call dword [sym.imp.GDI32.dll_StartPage]
cmp dword [ebp - 0x14], 0xffffffff
je 0x40255f
and dword [ebp - 0x8c], 0
mov byte [ebp - 0x95], 0x35
mov byte [ebp - 0x95], 0xdb
movsx eax, byte [ebp - 0x95]
dec eax
mov byte [ebp - 0x95], al
movsx eax, byte [ebp - 0x95]
add eax, 0x4c
mov byte [ebp - 0x95], al
mov dword [ebp - 0xa8], 0x90c
call dword [sym.imp.GDI32.dll_GdiGetBatchLimit]
and dword [ebp - 0xb0], 0
mov dword [ebp - 0x90], 0xee
mov dword [ebp - 0x90], 0x4e
mov eax, dword [ebp - 0x90]
dec eax
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
add eax, 0xa0
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x48], 0x34
mov dword [ebp - 0x48], 0x37
mov eax, dword [ebp - 0x48]
dec eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add eax, 0xc1
mov dword [ebp - 0x48], eax
push 0
call dword [sym.imp.GDI32.dll_GetBkColor]
push 0
call dword [sym.imp.GDI32.dll_EndPath]
mov byte [ebp - 0x85], 0x1c
mov byte [ebp - 0x85], 0x89
movsx eax, byte [ebp - 0x85]
inc eax
mov byte [ebp - 0x85], al
mov byte [ebp - 0xaa], 0x1a
mov byte [ebp - 0xaa], 4
movsx eax, byte [ebp - 0xaa]
dec eax
mov byte [ebp - 0xaa], al
movsx eax, byte [ebp - 0xaa]
add eax, 0x2b
mov byte [ebp - 0xaa], al
call dword [sym.imp.USER32.dll_GetActiveWindow]
push 0
call dword [sym.imp.GDI32.dll_CancelDC]
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetFileInformationByHandle]
mov dword [ebp - 0xb8], 0x1dc
mov dword [ebp - 0xb8], 0x7c
mov eax, dword [ebp - 0xb8]
inc eax
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0xa1], 0x31
mov byte [ebp - 0xa1], 0x46
movsx eax, byte [ebp - 0xa1]
dec eax
mov byte [ebp - 0xa1], al
movsx eax, byte [ebp - 0xa1]
add eax, 0xb5
mov byte [ebp - 0xa1], al
push 0
call dword [sym.imp.GDI32.dll_EndPage]
push 0
push 0
mov eax, dword [ebp - 0x60]
sub eax, 0xff
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 0x50], 0x79
mov dword [ebp - 0x50], 0xf7
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
mov word [ebp - 0xa0], 0xc8
push 0
call dword [sym.imp.GDI32.dll_StartPage]
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov dword [ebp - 0x4c], 0x1222
mov word [ebp - 0xb4], 0xe9
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 0
lea eax, [ebp - 0xb0]
push eax
push 0xff
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov byte [ebp - 0xa2], 0x21
mov byte [ebp - 0xa2], 0x73
movsx eax, byte [ebp - 0xa2]
dec eax
mov byte [ebp - 0xa2], al
movsx eax, byte [ebp - 0xa2]
add eax, 0x36
mov byte [ebp - 0xa2], al
mov dword [ebp - 0x94], 0xa2
mov dword [ebp - 0x94], 0x30
mov eax, dword [ebp - 0x94]
dec eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
add eax, 0xf1
mov dword [ebp - 0x94], eax
push 0x30
push 0x73
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push 0
call dword [sym.imp.GDI32.dll_GetColorSpace]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp eax, 0x68
jne 0x402518
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 1]
cmp eax, 0x74
jne 0x402518
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 2]
cmp eax, 0x74
jne 0x402518
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 3]
cmp eax, 0x70
jne 0x402518
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov byte [ebp - 0xba], 0x1f
mov byte [ebp - 0xba], 0x65
movsx eax, byte [ebp - 0xba]
inc eax
mov byte [ebp - 0xba], al
mov byte [ebp - 0xb9], 0x26
mov byte [ebp - 0xb9], 0x17
movsx eax, byte [ebp - 0xb9]
dec eax
mov byte [ebp - 0xb9], al
movsx eax, byte [ebp - 0xb9]
add eax, 0xa4
mov byte [ebp - 0xb9], al
push 0
call dword [sym.imp.GDI32.dll_EndPage]
xor eax, eax
inc eax
jmp 0x4025f8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov byte [ebp - 0xa9], 0x1a
mov byte [ebp - 0xa9], 0xbd
movsx eax, byte [ebp - 0xa9]
dec eax
mov byte [ebp - 0xa9], al
movsx eax, byte [ebp - 0xa9]
add eax, 0x4c
mov byte [ebp - 0xa9], al
mov dword [ebp - 0x9c], 0x5ed
push 0
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov byte [ebp - 3], 0
movzx eax, byte [ebp - 3]
test eax, eax
je 0x40257d
movzx eax, byte [ebp - 3]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 3], al
movzx eax, byte [ebp - 3]
test eax, eax
je 0x402589
mov byte [ebp - 3], 0
movzx eax, byte [ebp - 3]
test eax, eax
jne 0x402595
mov byte [ebp - 3], 0
mov word [ebp - 0x3c], 0x6d
call dword [sym.imp.GDI32.dll_GdiGetBatchLimit]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xd0], eax
push dword [ebp - 0xd0]
call fcn.004013a4
pop ecx
mov byte [ebp - 0x31], 0x32
mov byte [ebp - 0x31], 0xaf
movsx eax, byte [ebp - 0x31]
dec eax
mov byte [ebp - 0x31], al
movsx eax, byte [ebp - 0x31]
add eax, 9
mov byte [ebp - 0x31], al
mov word [ebp - 0x10], 0xb2
push 0
call dword [sym.imp.GDI32.dll_GetColorSpace]
xor eax, eax
jmp 0x4025f8
leave
ret