Function at 0x411280
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x10], edi
mov dword [eax + 0x20], edi
mov ecx, dword [esi + 0x44]
call fcn.004157b0
cmp eax, 1
je 0x4112c1
mov ecx, dword [esi + 0x3c]
push edi
push edi
push 0x6c
call fcn.004107c0
mov ecx, dword [esi + 0x3c]
push 1
push esi
call fcn.0040ecc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esi + 0x30]
dec eax
je 0x411490
dec eax
je 0x4112df
sub eax, 3
je 0x411421
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov ebx, dword [esi + 0x2c]
lea ebp, [esi + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x3c]
push edx
push 0x800
call fcn.0040f840
lea edi, [esi + 0x28]
push 0
push edi
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esi + 0x3c]
push 0
push 0
push ebp
push 1
mov dword [ecx + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x4113fe
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x411351
mov edx, dword [edi]
mov ecx, dword [esi + 0x3c]
push 1
push edx
call fcn.0040fd40
test eax, eax
mov dword [esp + 0x10], eax
jne 0x41140c
mov ecx, dword [edi]
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esi + 0x44]
push ebx
call fcn.00415dd0
test eax, eax
jne 0x41144e
cmp ebx, dword [esi + 0x2c]
jne 0x411377
add ebx, 0x800
jmp 0x41137d
sub ebx, 0x800
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp]
mov ecx, dword [esi + 0x3c]
push edx
push 0x800
call fcn.0040f840
mov ecx, dword [edi]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esi + 0x44]
call fcn.00415ec0
test eax, eax
jne 0x41144e
mov eax, dword [edi]
mov ecx, dword [esi + 0x50]
add ecx, eax
mov dword [esi + 0x50], ecx
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx + 8]
add edx, eax
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [edi], eax
je 0x411458
mov edx, dword [esi + 0x3c]
push 0
push 0
push ebp
push 1
mov dword [edx + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x411331
mov eax, dword [esi + 0x10]
add eax, 0x6e
mov dword [esp + 0x10], eax
test eax, eax
je 0x411421
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
mov ecx, dword [esi + 0x3c]
call fcn.004107c0
test eax, eax
jne 0x411446
mov ecx, dword [esi + 0x44]
push 0
push 0
push 3
call fcn.00415680
mov ecx, dword [esi + 0x44]
call fcn.00415500
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x411446
push 1
push esi
call fcn.0040ecc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov dword [esp + 0x10], 0x6b
jmp 0x41140c
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x41146b
mov ecx, dword [esi + 0x3c]
push 3
push 1
call fcn.0040fd40
mov eax, dword [esi + 0x3c]
push str.Successful_transfer
push esi
push 0x401
push 0xe2
push eax
call fcn.0040d180
mov eax, dword [esp + 0x24]
add esp, 0x14
jmp 0x411408
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
push ecx
mov ecx, dword [esi + 0x44]
push edx
call fcn.00415f80
mov ecx, dword [esi + 0x28]
mov ebx, dword [esi + 0x50]
mov eax, dword [esi + 0x3c]
add ebx, ecx
cmp eax, edi
mov dword [esi + 0x50], ebx
je 0x4114b5
add dword [eax + 8], ecx
mov eax, dword [esi + 0x3c]
push str.Transfer_successfully_achieved
push esi
push 0x400
push 0xe2
push eax
call fcn.0040d180
add esp, 0x14
jmp 0x411421