Function at 0x401000
Capabilities:
Enumerate pe sections
Get common file path
Get disk size
Get file size
Read file on windows

Disassembly:
sub esp, 0x130
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
mov edi, dword [esp + 0x144]
push 0x104
push str.Ulead_Panorama_Images
xor ebx, ebx
push 0xb
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [0x404290], edi
call esi
push 0x104
push str.E_Mail_Image
push 0xc
push edi
call esi
lea eax, [esp + 0x3c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40108b
lea ecx, [esp + 0x3c]
push 0x104
push ecx
push 1
push edi
call esi
push 0x10
lea edx, [esp + 0x40]
push ebx
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret 0x10
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [esp + 0x50]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
jne 0x4010d4
lea ecx, [esp + 0x3c]
push 0x104
push ecx
push 2
push edi
call esi
push 0x10
lea edx, [esp + 0x40]
push ebx
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401369
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ebx
jne 0x40110c
lea eax, [esp + 0x3c]
push 0x104
push eax
push 0xa
push edi
call esi
push 0x10
lea ecx, [esp + 0x40]
push 0
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401365
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401137
lea edx, [esp + 0x3c]
push 0x104
push edx
push 9
push edi
call esi
push 0x10
lea eax, [esp + 0x40]
push ebp
push eax
jmp 0x40134c
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
push 0
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401334
cmp dword [esp + 0x34], ebx
jne 0x401334
mov eax, dword [ebp + 0x3c]
mov esi, dword [eax + ebp + 0x54]
lea ecx, [eax + ebp]
xor eax, eax
mov ax, word [ecx + 6]
test eax, eax
jle 0x401181
add ecx, 0x108
mov edx, dword [ecx]
add ecx, 0x28
add esi, edx
dec eax
jne 0x401177
cmp ebx, esi
je 0x401354
mov ecx, ebx
sub ecx, esi
cmp ecx, 0x1c
jae 0x4011b6
lea edx, [esp + 0x3c]
push 0x104
push edx
push 8
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
lea eax, [esp + 0x40]
push 0x404220
push eax
jmp 0x40134c
cmp dword [ebx + ebp - 4], esi
je 0x4011db
lea ecx, [esp + 0x3c]
push 0x104
push ecx
push 8
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
push 0x40421c
jmp 0x401347
lea ecx, [ebx - 8]
xor eax, eax
test ecx, ecx
jle 0x401203
cmp eax, esi
jl 0x4011ef
lea edx, [esi + 0x18]
cmp eax, edx
jl 0x4011fe
mov ebx, dword [esp + 0x10]
xor edx, edx
mov dl, byte [eax + ebp]
add ebx, edx
mov dword [esp + 0x10], ebx
inc eax
cmp eax, ecx
jl 0x4011e4
xor eax, eax
lea ebx, [esi + ebp]
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [ebx + eax]
add edx, ecx
inc eax
cmp eax, 0x18
mov dword [esp + 0x10], edx
jb 0x401208
mov eax, dword [esp + 0x20]
cmp dword [eax + ebp - 8], edx
je 0x401246
lea ecx, [esp + 0x3c]
push 0x104
push ecx
push 8
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
push str.321654
jmp 0x401347
lea eax, [esp + 0x14]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40130d
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40130d
lea eax, [esp + 0x18]
push eax
push 1
call dword [sym.imp.ole32.dll_CoGetMalloc]
test eax, eax
jne 0x40129f
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea edx, [esp + 0x38]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40130d
mov ecx, dword [esp + 0x30]
imul ecx, dword [esp + 0x24]
imul ecx, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov eax, dword [ebx]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
lea edx, [eax + eax*4]
mov eax, 0x51eb851f
shl edx, 1
mul edx
shr edx, 5
cmp ecx, edx
jae 0x40130d
lea eax, [esp + 0x3c]
push 0x104
push eax
push 3
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
lea ecx, [esp + 0x40]
push 0
push ecx
jmp 0x40134c
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
push esi
push ebp
call fcn.00401380
lea edx, [esp + 0x3c]
mov eax, dword [esp + 0x2c]
push edx
push eax
call fcn.00401ab0
jmp 0x401354
lea ecx, [esp + 0x3c]
push 0x104
push ecx
push 0xa
push edi
call esi
push 0x10
push 0
lea edx, [esp + 0x44]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test ebp, ebp
je 0x401361
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x401370
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret 0x10