Function at 0x490700
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x458
mov eax, dword [0x4c75d0]
xor eax, esp
mov dword [esp + 0x454], eax
mov eax, dword [0x4ee010]
push ebx
push ebp
push esi
push edi
push 0x1f4
push eax
mov esi, ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esi + 8]
mov eax, dword [0x4ee010]
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea ecx, [esp + 0x38]
push ecx
push edx
push 0x148
push 0x9ef
push eax
call edi
mov ecx, dword [esi + 8]
mov edx, dword [0x4ee010]
push 0
push ecx
push 0x150
push 0x9ef
push edx
call edi
mov ecx, dword [esi + 0x10]
mov edx, dword [0x4ee010]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x38]
push eax
push ecx
push 0x148
push 0x9f0
push edx
call edi
mov eax, dword [esi + 0x10]
mov ecx, dword [0x4ee010]
push 0
push eax
push 0x150
push 0x9f0
push ecx
call edi
mov ecx, dword [0x4ee010]
mov ebx, eax
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x38]
push edx
push eax
push 0x148
push 0x9ee
push ecx
mov dword [esp + 0x3c], ebx
call edi
mov edx, dword [esi + 0xc]
mov eax, dword [0x4ee010]
push 0
push edx
push 0x150
push 0x9ee
push eax
call edi
mov ebp, eax
cdq
idiv ebx
mov edi, ebx
sub edi, dword [esp + 0x10]
push ebp
mov dword [esp + 0x18], eax
call fcn.0042dbdc
push ebp
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x2c], ebx
call fcn.0042e03c
add esp, 0x10
cmp dword [esi + 4], 0
jne 0x490a2a
mov ebx, dword [esp + 0x14]
dec ebx
js 0x4908da
mov ecx, dword [esp + 0x1c]
add ecx, edi
mov edx, ebx
imul edx, edx, 0x104
lea eax, [edx + esi + 0x118]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
lea esp, [esp]
mov ecx, dword [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x490883
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4908bc
fld dword [0x4bf1f4]
push ebx
push ecx
fstp dword [esp]
call fcn.00401b20
fnstcw word [esp + 0x22]
add esp, 8
movzx eax, word [esp + 0x1a]
or eax, 0xc00
mov dword [esp + 0x2c], eax
fldcw word [esp + 0x2c]
fistp qword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
or dword [esp + 0x20], ecx
fldcw word [esp + 0x1a]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x28]
sub dword [esp + 0x10], 0x104
add dword [esp + 0x14], edx
dec ebx
jns 0x490840
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x490921
mov eax, dword [0x4ee010]
push 0x30
push str.Error
push str.Could_not_create_output_file
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x490b0a
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x38]
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x20]
test ebx, ebx
jne 0x490961
mov eax, dword [0x4ee010]
push 0x30
push str.Stack_Results
push str.Files_Stacked_Successfully_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x490af8
mov edx, str.Error_Opening_bins_at_the_following_positions:_n
mov eax, 0x400
lea ecx, [esp + 0x64]
call fcn.004a0810
xor esi, esi
mov edi, 1
jmp 0x490980
mov ecx, edi
and ecx, ebx
cmp ecx, edi
jne 0x4909d0
push esi
push str.Position__X_n
lea edx, [esp + 0x4c]
push 0x1e
push edx
call fcn.004010b0
add esp, 0x10
mov edx, 0x400
lea eax, [esp + 0x64]
cmp byte [eax], 0
je 0x4909b1
inc eax
dec edx
jne 0x4909a6
jmp 0x4909d0
test edx, edx
je 0x4909d0
mov ecx, 0x400
sub ecx, edx
mov eax, 0x400
sub eax, ecx
lea ecx, [esp + ecx + 0x64]
lea edx, [esp + 0x44]
call fcn.0049ec80
inc esi
rol edi, 1
cmp esi, 0x20
jb 0x490980
mov edx, 0x400
lea eax, [esp + 0x64]
cmp byte [eax], 0
je 0x4909ec
inc eax
dec edx
jne 0x4909e1
jmp 0x490a0c
test edx, edx
je 0x490a0c
mov ecx, 0x400
sub ecx, edx
mov eax, 0x400
sub eax, ecx
lea ecx, [esp + ecx + 0x64]
mov edx, str._nBad_Positions_are_filled_with_zeros.
call fcn.0049ec80
mov ecx, dword [0x4ee010]
push 0x30
push str.Stack_Results
lea eax, [esp + 0x6c]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x490af8
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea edx, [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
jne 0x490a74
mov eax, dword [0x4ee010]
push 0x30
push str.Error
push str.Could_not_open_input_file
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x490b0a
push 0
lea ecx, [esp + 0x28]
push ecx
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x14]
dec ebx
js 0x490af8
mov ebp, dword [esp + 0x1c]
add ebp, edi
mov ecx, ebx
imul ecx, ecx, 0x104
lea edi, [ecx + esi + 0x118]
jmp 0x490ab0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x490ae4
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x28]
push edx
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebp, dword [esp + 0x28]
sub edi, 0x104
dec ebx
jns 0x490ab0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x490b0a
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [esp + 0x464]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042dbe7
add esp, 0x458
ret