Function at 0x40143b
Capabilities:
Create thread
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403358], eax
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 0x3003
mov dword [ebp - 0x28], 0x40143b
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov eax, dword [0x403358]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.FIWR_class
push 0x1f4
push dword [0x403358]
call sub.user32.dll_LoadIconA
mov dword [0x403380], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
call sub.user32.dll_GetSystemMetrics
shr eax, 1
sub eax, 0xc8
mov ebx, eax
push 1
call sub.user32.dll_GetSystemMetrics
shr eax, 1
sub eax, 0x73
push 0
push dword [0x403358]
push 0
push 0
push 0x10e
push 0x190
push eax
push ebx
push 0x10c00000
push str._FIWR_v0.3
push str.FIWR_class
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x40335c], eax
push 0
push dword [0x403358]
push 0
push dword [0x40335c]
push 0x18
push 0x41
push 0x14
push 0x12
push 0x50801000
push str.Image_File
push str.Button
push 0x20000
call sub.user32.dll_CreateWindowExA
mov dword [0x403334], eax
push 0
push dword [0x403358]
push 0
push dword [0x40335c]
push 0x18
push 0x64
push 0xaa
push 7
push 0x58800000
push str.Write
push str.Button
push 0x20000
call sub.user32.dll_CreateWindowExA
mov dword [0x403338], eax
push 0
push dword [0x403358]
push 0
push dword [0x40335c]
push 0x18
push 0x64
push 0x8c
push 7
push 0x58800000
push str.Read
push str.Button
push 0x20000
call sub.user32.dll_CreateWindowExA
mov dword [0x403350], eax
push 0
push dword [0x403358]
push 0
push dword [0x40335c]
push 0x18
push 0x46
push 0xaa
push 0x13c
push 0x50800000
push str.Exit
push str.Button
push 0x20000
call sub.user32.dll_CreateWindowExA
mov dword [0x40333c], eax
push 0
push dword [0x403358]
push 0
push dword [0x40335c]
push 0x37
push 0x17c
push 2
push 7
push 0x50000007
push 0
push str.Button
push 0
call sub.user32.dll_CreateWindowExA
push 0
push dword [0x403358]
push 0
push dword [0x40335c]
push 0x37
push 0x17c
push 0x3c
push 7
push 0x50000007
push 0
push str.Button
push 0
call sub.user32.dll_CreateWindowExA
push 0
push dword [0x403358]
push 0
push dword [0x40335c]
push 0x12
push 0x18d
push 0xd0
push 0xfffffffffffffffe
push 0x58800800
push 0
push str.Edit
push 0x200
call sub.user32.dll_CreateWindowExA
mov dword [0x40334c], eax
push 0
push dword [0x403358]
push 0
push dword [0x40335c]
push 0x26
push 0x26
push 0x49
push 0x14
push 0x50000303
push 0
push str.Static
push 0x20
call sub.user32.dll_CreateWindowExA
push dword [0x403380]
push 1
push 0x172
push eax
call sub.user32.dll_SendMessageA
push 0
push dword [0x403358]
push 0
push dword [0x40335c]
push 0x32
push 0x82
push 0x50
push 0xf7
push 0x50000003
push 0
push str.combobox
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x403344], eax
call sub.kernel32.dll_GetLogicalDrives
test eax, eax
je 0x401433
mov ebx, eax
bt eax, 0
jae 0x4012ed
push 0x4031f8
push 0
push 0x143
push dword [0x403344]
call sub.user32.dll_SendMessageA
bt ebx, 1
jae 0x40130a
push 0x403208
push 0
push 0x143
push dword [0x403344]
call sub.user32.dll_SendMessageA
push 0
push 0
push 0x14e
push dword [0x403344]
call sub.user32.dll_SendMessageA
push 0
push dword [0x403358]
push 0
push dword [0x40335c]
push 0x19
push 0x5f
push 0x55
push 0xa0
push 0x5000000b
push str.Floppy_Drive:
push str.Static
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x403348], eax
push 0
push dword [0x403358]
push 0
push dword [0x40335c]
push 0x18
push 0x11f
push 0x14
push 0x5a
push 0x50800880
push 0
push str.Edit
push 0x200
call sub.user32.dll_CreateWindowExA
mov dword [0x403340], eax
push pe_nt_image_headers32
push dword [0x40335c]
push 0
push 0x50000000
call sub.comctl32.dll_CreateStatusWindowA
mov dword [0x40336c], eax
push 0
push 0x1000
push 0x401
push dword [0x40336c]
call sub.user32.dll_SendMessageA
push 0x11
call sub.gdi32.dll_GetStockObject
mov edi, eax
mov esi, 0x403334
mov ebx, 8
push 0
push edi
push 0x30
push dword [esi]
call sub.user32.dll_SendMessageA
add esi, 4
dec ebx
jne 0x4013d0
push 1
push dword [0x40335c]
call sub.user32.dll_ShowWindow
push dword [0x40335c]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
test eax, eax
je 0x401421
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x4013fa
push 0x8000
push 0
push dword [0x403354]
call sub.kernel32.dll_VirtualFree
push dword [ebp - 0x44]
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x111
jne 0x40180c
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x403334]
jne 0x40152b
push 0
push dword [0x40334c]
call sub.user32.dll_SetWindowTextA
push 0
push dword [0x403338]
call sub.user32.dll_EnableWindow
mov dword [0x40337c], 0
push 0
push 0
push dword [0x40336c]
call sub.user32.dll_InvalidateRect
mov dword [0x403522], 0x4c
mov eax, dword [0x40335c]
mov dword [0x403526], eax
mov edx, dword [0x403358]
mov dword [0x40352a], edx
mov dword [0x40352e], 0x403040
mov dword [0x40353e], 0x403384
mov dword [0x403542], 0x100
mov dword [0x403556], 0x80824
mov dword [0x403552], 0x403228
mov dword [0x403566], 0x401e55
push 0x403522
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
je 0x401893
push dword [0x40353e]
push dword [0x403340]
call sub.user32.dll_SetWindowTextA
push 1
push dword [0x403350]
call sub.user32.dll_EnableWindow
push 1
push dword [0x403338]
call sub.user32.dll_EnableWindow
jmp 0x401893
cmp eax, dword [0x403338]
jne 0x4016f7
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [0x40353e]
call sub.kernel32.dll_CreateFileA
mov dword [0x403360], eax
cmp eax, 0xffffffff
je 0x4015d7
push 0
push dword [0x403360]
call sub.kernel32.dll_GetFileSize
cmp eax, 0x168000
ja 0x40161e
mov edx, eax
shr eax, 9
imul eax, eax, 0x200
cmp eax, edx
je 0x40158a
add eax, 0x200
mov dword [0x403368], eax
push 4
push 0x1000
push dword [0x403368]
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [0x403354], eax
push 0
push 0x403378
push dword [0x403368]
push dword [0x403354]
push dword [0x403360]
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x4015ec
push dword [0x403360]
call sub.kernel32.dll_CloseHandle
jmp 0x40163e
push str.Error_opening_the_file._Make_sure_it_doesnt_used_by_another_application.
push dword [0x40334c]
call sub.user32.dll_SetWindowTextA
jmp 0x401893
push str.Error_reading_the_file_
push dword [0x40334c]
call sub.user32.dll_SetWindowTextA
push dword [0x403360]
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push dword [0x403354]
call sub.kernel32.dll_VirtualFree
jmp 0x401893
push str.Image_size_of_the_selected_file_exceeds_floppy_disk_capacity.
push dword [0x40334c]
call sub.user32.dll_SetWindowTextA
push dword [0x403360]
call sub.kernel32.dll_CloseHandle
jmp 0x401893
mov dword [0x40337c], 0
push 0
push dword [0x403338]
call sub.user32.dll_EnableWindow
push 0
push dword [0x403334]
call sub.user32.dll_EnableWindow
push 0
push dword [0x403350]
call sub.user32.dll_EnableWindow
push 0
push 0x64
push 0x406
push dword [0x40335c]
call sub.user32.dll_SetTimer
mov dword [0x403370], eax
mov esi, 0x4018a8
mov dword [0x40348e], 0x94
push 0x40348e
call sub.kernel32.dll_GetVersionExA
cmp dword [0x40349e], 2
je 0x4016af
mov esi, 0x4019f9
push 0x403374
push 0
push 0
push esi
push 0
push 0
call sub.kernel32.dll_CreateThread
test eax, eax
je 0x4016d1
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x401893
push 0x4032e4
push dword [0x40334c]
call sub.user32.dll_SetWindowTextA
push dword [0x403370]
push dword [0x40335c]
call sub.user32.dll_KillTimer
jmp 0x401893
cmp eax, dword [0x403350]
jne 0x4017d4
push 4
push 0x1000
push 0x168000
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [0x403354], eax
mov dword [0x40337c], 0
push 0
push dword [0x403350]
call sub.user32.dll_EnableWindow
push 0
push dword [0x403338]
call sub.user32.dll_EnableWindow
push 0
push dword [0x403334]
call sub.user32.dll_EnableWindow
push 0
push 0x64
push 0x406
push dword [0x40335c]
call sub.user32.dll_SetTimer
mov dword [0x403370], eax
mov esi, 0x401b28
mov dword [0x40348e], 0x94
push 0x40348e
call sub.kernel32.dll_GetVersionExA
cmp dword [0x40349e], 2
je 0x40178c
mov esi, 0x401ccf
push 0x403374
push 0
push 0
push esi
push 0
push 0
call sub.kernel32.dll_CreateThread
test eax, eax
je 0x4017ae
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x401893
push str.Failed_to_create_new_thread.
push dword [0x40334c]
call sub.user32.dll_SetWindowTextA
push dword [0x403370]
push dword [0x40335c]
call sub.user32.dll_KillTimer
jmp 0x401893
cmp eax, dword [0x40333c]
jne 0x4017e6
jmp 0x40187b
cmp dword [ebp + 0x10], 0
jne 0x401893
push 0
push str.About...
push str._____________FIWR_v0.3_by_Roman_Ovseytsev__arafel__r_n_r_n_Webpage:__http:__www.eccentrix.com_members_arafel____r_n_E_mail:___tsech_mail.ru
push dword [0x40335c]
call sub.user32.dll_MessageBoxA
jmp 0x401893
cmp dword [ebp + 0xc], 0x113
jne 0x40182c
inc dword [0x40337c]
push 0
push 0
push dword [0x40336c]
call sub.user32.dll_InvalidateRect
jmp 0x401893
cmp dword [ebp + 0xc], 0x2b
jne 0x401875
cmp dword [ebp + 0x10], 0xc8
jne 0x401893
mov ebx, dword [ebp + 0x14]
push 4
call sub.gdi32.dll_GetStockObject
push eax
push dword [ebx + 0x18]
call sub.gdi32.dll_SelectObject
mov eax, dword [0x40337c]
mov ecx, dword [ebx + 0x24]
sub ecx, dword [ebx + 0x1c]
mul ecx
shr eax, 9
add eax, dword [ebx + 0x1c]
push dword [ebx + 0x28]
push eax
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call sub.gdi32.dll_Rectangle
jmp 0x401893
cmp dword [ebp + 0xc], 2
jne 0x401893
push dword [0x403364]
call sub.kernel32.dll_CloseHandle
push 0
call sub.user32.dll_PostQuitMessage
xor eax, eax
leave
ret 0x10
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.user32.dll_DefWindowProcA
leave
ret 0x10