Function at 0x401300
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x230
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x244]
push 0x104
mov dword [edi + 0xc], 0
mov eax, dword [0x406550]
lea esi, [edi + 0x218]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x10000000
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
test ebx, ebx
jne 0x40135a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret
push 2
push 0
push 0xffffffffffffffe0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x20
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401394
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x230
ret
cmp dword [esp + 0x18], 0x314159
jne 0x4013a5
cmp dword [esp + 0x1c], 0x20
je 0x4013b9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x230
ret
lea esi, [edi + 0x10]
push esi
call fcn.00401720
add esp, 4
test eax, eax
jne 0x4013dd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x230
ret
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x38]
push esi
push eax
call edi
lea ecx, [esp + 0x13c]
push esi
push ecx
call edi
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push str.ShFill._xe
lea eax, [esp + esi + 0x3c]
push eax
mov dword [esp + 0x1c], eax
call edi
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push ecx
push edx
push eax
push ebx
call fcn.004017d0
add esp, 0x10
test eax, eax
jne 0x40144b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x230
ret
lea ebp, [esp + esi + 0x13c]
push str.ShFill.exe
push ebp
call edi
lea ecx, [esp + 0x38]
lea edx, [esp + 0x13c]
push ecx
push edx
call fcn.004016b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x401489
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x230
ret
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x10], ecx
jle 0x401524
mov ecx, dword [esp + 0x14]
push str.vtssdl32._dl
push ecx
call edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push ebx
call fcn.004017d0
add esp, 0x10
test eax, eax
jne 0x4014df
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x230
ret
push str.vtssdl32.dll
push ebp
call edi
lea edx, [esp + 0x38]
lea eax, [esp + 0x13c]
push edx
push eax
call fcn.004016b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x401516
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x230
ret
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x4015b1
mov edx, dword [esp + 0x14]
push str.codebar._dl
push edx
call edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
push ecx
push edx
push ebx
call fcn.004017d0
add esp, 0x10
test eax, eax
jne 0x40156c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x230
ret
push str.codebar.dll
push ebp
call edi
lea eax, [esp + 0x38]
lea ecx, [esp + 0x13c]
push eax
push ecx
call fcn.004016b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4015a3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x230
ret
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x401605
mov eax, dword [esp + 0x14]
push str.Form.ftf
push eax
call edi
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push ecx
push edx
push eax
push ebx
call fcn.004017d0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4015f7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x230
ret
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x401659
mov edx, dword [esp + 0x14]
push str.Form.fdd
push edx
call edi
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
push ecx
push edx
push ebx
call fcn.004017d0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x40164b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x230
ret
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x28]
xor ecx, ecx
test eax, eax
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x244]
setg cl
xor edx, edx
push ebx
test eax, eax
setg dl
xor eax, eax
mov dword [edi], ecx
test ebp, ebp
setg al
mov dword [edi + 8], edx
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00401780
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret