Function at 0x4158a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x7c0
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
push edi
xor edi, edi
push edi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x818]
push 0x1032
push eax
or esi, 0xffffffff
mov dword [esp + 0x24], 0x2000
mov dword [esp + 0x2c], edi
call ebx
cmp eax, edi
mov dword [esp + 0x30], eax
jge 0x4158fc
mov ecx, dword [ebp + 0x82c]
push 0x43bf88
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
mov ecx, ebp
call fcn.004141a0
push edi
jmp 0x415df9
cmp eax, edi
mov dword [esp + 0x24], edi
jg 0x415941
mov eax, dword [ebp + 0x814]
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.004141a0
push 0
push ebp
mov ecx, ebp
call fcn.004154d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c0
ret
mov esi, dword [esp + 0x34]
push 0
mov ecx, ebp
call fcn.004141a0
mov eax, dword [ebp + 0x814]
push 1
push 0x441
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp + 0x818]
push 2
push esi
push 0x100c
push ecx
call ebx
test eax, eax
jl 0x415dbf
lea edx, [esp + 0x38]
push edx
push eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x818]
push 0x102d
lea esi, [ebp + 0x4fb]
push eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x60], 0xff
mov dword [esp + 0x5c], esi
call ebx
push esi
lea eax, [ebp + 0xff]
push eax
lea ecx, [esp + 0x1c8]
push str._s_s
push ecx
call fcn.0042da36
lea eax, [esp + 0x1d0]
mov edx, ebp
mov ecx, eax
sub edx, ecx
add esp, 0x10
add edx, 0x5fa
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4159e0
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
push 0
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp edi, 0xffffffff
jne 0x415a32
mov ecx, dword [ebp + 0x82c]
push 0x43bf68
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x415da5
test byte [esp + 0x80], 0x10
je 0x415a53
mov edx, dword [ebp + 0x82c]
push 0x43bf54
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x415da5
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov edi, dword [esp + 0xa0]
push 0
sub eax, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
mov dword [esp + 0x28], edi
call fcn.0042dec0
mov dword [esp + 0x28], eax
lea eax, [esp + 0xac]
lea ebx, [ebp + 0x3fc]
mov dword [esp + 0x2c], edx
mov ecx, ebx
mov edx, eax
sub ecx, edx
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x415aa0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x415ac3
cmp edi, dword [esp + 0x14]
ja 0x415ac3
mov dword [esp + 0x14], edi
push 0
push 0x8000000
push 3
push 0
push 1
push connect
lea ecx, [esp + 0x1d8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x854], eax
je 0x415ddc
push ebx
push ebp
push esi
lea eax, [ebp + 0xff]
push eax
lea edx, [esp + 0x3d0]
push 0x43bf38
push edx
call fcn.0042da36
mov ecx, dword [ebp + 0x82c]
add esp, 0x18
lea eax, [esp + 0x3c0]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
push ebp
lea edx, [esp + 0x1c8]
push str._s_s
push edx
call fcn.0042da36
add esp, 0x10
lea eax, [esp + 0x1c0]
push eax
mov ecx, ebp
call fcn.00414290
lea eax, [esp + 0x1c0]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x415b56
sub eax, ecx
mov dword [esp + 0x10], eax
add eax, 8
push eax
mov dword [esp + 0x24], eax
call fcn.0042d009
mov ecx, dword [esp + 0x14]
movzx dx, ch
mov dh, cl
mov ebx, eax
mov eax, ecx
shr ecx, 2
mov byte [ebx], 0x84
mov byte [ebx + 1], 0
mov dword [ebx + 4], 0
mov word [ebx + 2], dx
lea esi, [esp + 0x1c4]
lea edi, [ebx + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
mov ecx, dword [ebp + 0x7f8]
push ebx
call fcn.004045b0
push ebx
call fcn.0042da31
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
mov ecx, ebp
jne 0x415bdc
mov edx, dword [esp + 0x28]
push edx
call fcn.004144b0
jmp 0x415d6a
mov ebx, dword [esp + 0x14]
lea edi, [ebx + ebx*4]
xor edx, edx
shl edi, 1
div edi
push 1
push eax
push 0
push 0
call fcn.00414370
push ebx
xor esi, esi
call fcn.0042d009
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
mov dword [ebp + 0x838], 1
mov eax, dword [ebp + 0x814]
push eax
mov ecx, ebp
call fcn.00414140
mov eax, dword [ebp + 0x840]
test eax, eax
je 0x415c88
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x854]
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x415c52
test eax, eax
je 0x415d3d
push ebx
push eax
mov ecx, ebp
call fcn.00414520
add esi, dword [esp + 0x1c]
cmp esi, edi
jb 0x415c79
mov ecx, dword [ebp + 0x828]
xor esi, esi
push esi
push esi
push 0x405
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0x838]
test eax, eax
jne 0x415c10
jmp 0x415d49
mov edx, dword [ebp + 0x82c]
push 0x43bf28
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [ebp + 0x814]
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.004141a0
mov ecx, 7
mov esi, str.File_transfer_canceled_by_user
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x60]
movsb byte es:[edi], byte [esi]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x415cd8
sub eax, ecx
mov dword [esp + 0x18], eax
add eax, 4
push eax
mov dword [esp + 0x24], eax
call fcn.0042d009
mov ecx, dword [esp + 0x1c]
movzx dx, ch
mov dh, cl
mov ebx, eax
mov eax, ecx
shr ecx, 2
mov byte [ebx], 0x87
lea esi, [esp + 0x64]
lea edi, [ebx + 4]
mov word [ebx + 2], dx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
mov ecx, dword [ebp + 0x7f8]
push ebx
call fcn.004045b0
push ebx
call fcn.0042da31
mov ebx, dword [esp + 0x14]
add esp, 4
jmp 0x415d49
mov edx, dword [esp + 0x28]
push edx
mov ecx, ebp
call fcn.004144b0
mov eax, dword [ebp + 0x840]
test eax, eax
je 0x415904
push ebx
mov dword [ebp + 0x838], 0
call fcn.0042da31
add esp, 4
mov eax, dword [ebp + 0x828]
push 0
push 0
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0x82c]
push 0x43ab10
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [ebp + 0x854]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x41593d
jmp 0x415904
mov eax, dword [ebp + 0x82c]
push 0x43bed4
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c0
ret
mov ecx, dword [ebp + 0x82c]
push 0x43bee8
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
mov ecx, ebp
call fcn.004141a0
push 0
mov edx, dword [ebp + 0x814]
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, 0x7c0
ret