Function at 0x4177a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x790
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
push edi
mov eax, dword [ebp + 0x810]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x1042
push eax
mov dword [esp + 0x2c], 0x2000
mov dword [esp + 0x30], ebx
call edi
mov esi, eax
cmp esi, ebx
jge 0x417816
mov ecx, dword [ebp + 0x824]
push str.No_file_selected__nothing_to_upload.
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
mov ecx, ebp
call fcn.00418e50
mov edx, dword [ebp + 0x80c]
push ebx
push 0x441
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x790
ret
push ebx
mov ecx, ebp
call fcn.00418e50
mov ecx, dword [ebp + 0x810]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x34], ebx
push esi
lea ebx, [ebp + 0x4fb]
push 0x102d
push ecx
mov dword [esp + 0x50], 0xff
mov dword [esp + 0x4c], ebx
call edi
lea eax, [ebp + 0xff]
push ebx
push eax
lea edx, [esp + 0x198]
push str._s_s
push edx
call fcn.004309ee
lea edi, [esp + 0x1a0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x5fa]
mov eax, ecx
mov esi, edi
mov edi, edx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
call esi
lea ecx, [esp + 0x50]
lea edx, [esp + 0x190]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
push 0
mov dword [esp + 0x14], edi
call esi
cmp edi, 0xffffffff
jne 0x4178c5
push str.Could_not_find_selected_file__nothing_to_upload
jmp 0x41799b
test byte [esp + 0x50], 0x10
je 0x41790d
mov edx, dword [ebp + 0x824]
push str.Cannot_upload_a_directory
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
mov ecx, ebp
call fcn.00418e50
mov eax, dword [ebp + 0x80c]
push 0
push 0x441
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x790
ret
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], ecx
push edx
push eax
mov ecx, ebp
call fcn.00419bd0
mov dword [esp + 0x24], eax
lea edi, [esp + 0x7c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x3fc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
cmp eax, 0x2000
ja 0x41796b
mov dword [esp + 0x1c], eax
push 0
push 0x8000000
push 3
push 0
push 1
lea edx, [esp + 0x1a4]
push bind
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x84c], eax
jne 0x4179d7
push str.Upload_failed:_could_not_open_selected_file
mov eax, dword [ebp + 0x824]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
mov ecx, ebp
call fcn.00418e50
mov ecx, dword [ebp + 0x80c]
push 0
push 0x441
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x790
ret
lea eax, [ebp + 0x3fc]
lea edx, [esp + 0x390]
push eax
push ebp
lea eax, [ebp + 0xff]
push ebx
push eax
push str.Uploading:__s_s_____s_s_...
push edx
call fcn.004309ee
mov ecx, dword [ebp + 0x824]
add esp, 0x18
lea eax, [esp + 0x390]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push ebx
push ebp
lea edx, [esp + 0x198]
push str._s_s
push edx
call fcn.004309ee
add esp, 0x10
lea eax, [esp + 0x190]
mov ecx, ebp
push eax
call fcn.00419540
lea edi, [esp + 0x190]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
lea eax, [ecx + 8]
push eax
mov dword [esp + 0x1c], eax
call fcn.0043060b
mov ecx, dword [esp + 0x14]
xor edx, edx
mov dl, ch
mov ebx, eax
mov dh, cl
mov eax, ecx
lea esi, [esp + 0x194]
lea edi, [ebx + 8]
shr ecx, 2
mov byte [ebx], 0x84
mov byte [ebx + 1], 0
mov word [ebx + 2], dx
mov dword [ebx + 4], 0
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [ebp + 0x7f8]
push ebx
call fcn.0040b9f0
push ebx
call fcn.004304d0
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x417ac5
mov edx, dword [esp + 0x24]
mov ecx, ebp
push edx
call fcn.00419830
jmp 0x417c45
mov ebx, dword [esp + 0x1c]
xor edx, edx
push 1
mov ecx, ebp
lea edi, [ebx + ebx*4]
shl edi, 1
div edi
push eax
push 0
push 0
call fcn.004196c0
push ebx
xor esi, esi
call fcn.0043060b
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [ebp + 0x830], 1
mov eax, dword [ebp + 0x80c]
mov ecx, ebp
push eax
call fcn.00418df0
mov eax, dword [ebp + 0x838]
test eax, eax
je 0x417b73
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x84c]
lea ecx, [esp + 0x20]
push 0
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [esp + 0x20]
je 0x417b3d
test eax, eax
je 0x417c26
push ebx
push eax
mov ecx, ebp
call fcn.004198a0
add esi, dword [esp + 0x20]
cmp esi, edi
jb 0x417b64
mov ecx, dword [ebp + 0x820]
xor esi, esi
push esi
push esi
push 0x405
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0x830]
test eax, eax
jne 0x417afb
jmp 0x417c32
mov edx, dword [ebp + 0x824]
push str.File_transfer_canceled
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [ebp + 0x80c]
push 0
push 0x441
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
mov ecx, ebp
call fcn.00418e50
mov ecx, 7
mov esi, str.File_transfer_canceled_by_user
lea edi, [esp + 0x28]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ecx
lea eax, [ecx + 4]
push eax
mov dword [esp + 0x14], eax
call fcn.0043060b
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov dl, ch
mov ebx, eax
mov dh, cl
mov eax, ecx
lea esi, [esp + 0x2c]
lea edi, [ebx + 4]
shr ecx, 2
mov byte [ebx], 0x87
mov word [ebx + 2], dx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x7f8]
push ebx
call fcn.0040b9f0
push ebx
call fcn.004304d0
mov ebx, dword [esp + 0x18]
add esp, 4
jmp 0x417c32
mov edx, dword [esp + 0x24]
mov ecx, ebp
push edx
call fcn.00419830
push ebx
mov dword [ebp + 0x830], 0
call fcn.004304d0
add esp, 4
mov eax, dword [ebp + 0x820]
push 0
push 0
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0x824]
push 0x44a130
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [ebp + 0x84c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x80c]
push 0
push 0x441
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ebp
mov ecx, ebp
call fcn.004192e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x790
ret