Function at 0x5111e9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
xor edi, edi
push 0x103
lea eax, [ebp - 0x113]
push edi
push eax
mov dword [ebp - 0x3c4], edi
mov byte [ebp - 0x114], 0
call fcn.005306b0
add esp, 0xc
mov esi, 0x148
push esi
lea eax, [ebp - 0x3b0]
push edi
push eax
mov dword [ebp - 0x3b4], edi
call fcn.005306b0
add esp, 0xc
push esi
lea eax, [ebp - 0x260]
push edi
push eax
mov dword [ebp - 0x264], edi
call fcn.005306b0
add esp, 0xc
cmp ebx, edi
jne 0x511260
xor eax, eax
jmp 0x5117d3
push 0x1b50
mov esi, str..UpdatePAULA.c
push esi
push 4
call fcn.00471db5
add esp, 0xc
push 0x1b53
push esi
push 4
call fcn.00474c00
add esp, 0xc
test eax, eax
jne 0x5112b1
push 4
call fcn.00475a9e
mov dword [esp], 0x1b56
push esi
push 4
call fcn.00474c00
add esp, 0xc
test eax, eax
jne 0x5112b1
push str.:4:GetLastFTPConnectTime___could_not_logon_to_TAMS:_LockTAMSServer_LTS_FTPRESULTS__FAILED_
call fcn.0042bd38
pop ecx
mov dword [ebp - 0x3c8], 1
mov dword [ebp - 0x3c0], edi
mov esi, 0x14c
mov eax, dword [ebp - 0x3c0]
sub eax, edi
je 0x5112f2
dec eax
jne 0x5116ad
push str.FTPCRF.fat
lea edi, [ebp - 0x114]
call fcn.00470e3d
pop ecx
lea eax, [ebp - 0x264]
xor edi, edi
jmp 0x51131b
push str.FTPCRF.fat
push edi
push edi
call fcn.00493154
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x114]
push 0x553c34
push eax
call fcn.00531b2f
add esp, 0x10
lea eax, [ebp - 0x3b4]
push esi
push edi
push eax
mov dword [ebp - 0x3bc], eax
call fcn.005306b0
add esp, 0xc
push edi
push 0x61a8
push 3
push 7
push 1
lea eax, [ebp - 0x114]
push eax
push 0x20
pop eax
call fcn.0042eb42
add esp, 0x18
mov dword [ebp - 0x3b8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x3b8], 0xffffffff
jne 0x5113a8
cmp eax, 2
je 0x5114b0
cmp eax, 3
je 0x5114b0
cmp eax, 0xf
je 0x5114b0
cmp eax, 0x35
je 0x5114b0
push eax
push str._GetLastError_
lea eax, [ebp - 0x114]
push eax
push str.:3:GetLastFTPConnectTime___FAILED:_CreateFile___s___FAILED:__s_ld
call fcn.0042bd38
add esp, 0x10
mov dword [ebp - 0x3c8], edi
jmp 0x5114b0
push edi
lea eax, [ebp - 0x3c4]
push eax
push esi
push dword [ebp - 0x3bc]
push dword [ebp - 0x3b8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x51140e
cmp dword [ebp - 0x3c4], esi
jb 0x51140e
mov eax, dword [ebp - 0x3bc]
call fcn.005119ff
test eax, eax
je 0x5113fe
mov eax, dword [ebp - 0x3bc]
call fcn.005119ff
push eax
lea eax, [ebp - 0x114]
push eax
push str.:7:GetLastFTPConnectTime___read_data_from___s__and_it_seems_to_be_corrupt:_IsFtpConnectTimeInvalid___returned__ld
call fcn.0042bd38
add esp, 0xc
mov edi, dword [ebp - 0x3b8]
call fcn.00435716
jmp 0x5114ae
mov edi, dword [ebp - 0x3b8]
call fcn.00435716
mov eax, dword [0x7101d4]
mov ecx, eax
inc eax
cmp ecx, 5
mov dword [0x7101d4], eax
jae 0x5114a7
cmp eax, 2
push str._GetLastError_
push dword [ebp - 0x3c4]
lea ecx, [ebp - 0x114]
push esi
push ecx
push eax
ja 0x51149a
push str.:2:_d_of_5:_GetLastFTPConnectTime___FAILED:_ReadFile___s____ld__FAILED:_Could_only_read__ld_bytes:_Attempting_to_SetLastFTPConnectTime_FTP_UPDATE_FAIL__in_order_to_reset_the_correct_size_of_the_struct:__s
call fcn.0042b70b
push 4
call fcn.00475a9e
add esp, 0x1c
push 9
call fcn.00510a3a
test eax, eax
pop ecx
jne 0x51146f
push str.:7:SetLastFTPConnectTime_FTP_UPDATE_FAIL__FAILED_within_GetLastFTPConnectTime___while_trying_to_fix_an_invalid_file_size_on_the_server.
call fcn.0042b70b
pop ecx
push 0x1b99
push str..UpdatePAULA.c
push 4
call fcn.00474c00
add esp, 0xc
test eax, eax
jne 0x511492
push str.:7:GetLastFTPConnectTime___FAILED_to_RELOCK_the_server_after_calling_SetLastFTPConnectTime_FTP_UPDATE_FAIL__inorder_to_fix_bad_file_size:_LockTAMSServer_LTS_FTPRESULTS__FAILED___
call fcn.0042bd38
pop ecx
dec dword [ebp - 0x3c0]
jmp 0x5114ae
push str.:7:_d_of_5:_GetLastFTPConnectTime___FAILED:_ReadFile___s____ld__FAILED:_Could_only_read__ld_bytes:__s
call fcn.0042b70b
add esp, 0x18
and dword [ebp - 0x3c8], 0
xor edi, edi
inc dword [ebp - 0x3c0]
cmp dword [ebp - 0x3c0], 2
jl 0x5112c6
push 4
call fcn.00475a9e
pop ecx
push 0x53
pop ecx
lea esi, [ebp - 0x264]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 4]
mov dword [ebp - 0x3bc], edi
lea esi, [ebp - 0x260]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x264]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x14]
lea esi, [ebp - 0x250]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx], eax
mov eax, dword [ebp - 0x240]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x23c]
lea edi, [ebx + 0xac]
lea esi, [ebp - 0x1b8]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x1bc]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0xa8], eax
lea eax, [ebp - 0x1a8]
push eax
movsd dword es:[edi], dword [esi]
push 0x19
lea eax, [ebx + 0xbc]
pop ecx
movsd dword es:[edi], dword [esi]
call fcn.004ccc3f
mov eax, dword [ebp - 0x1dc]
lea edi, [ebx + 0x68]
lea esi, [ebp - 0x1fc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x88], eax
pop ecx
lea eax, [ebp - 0x1d8]
push eax
movsd dword es:[edi], dword [esi]
push 0x19
lea eax, [ebx + 0x8c]
pop ecx
movsd dword es:[edi], dword [esi]
call fcn.004ccc3f
lea edi, [ebx + 0x30]
mov dword [ebp - 0x3b8], edi
lea esi, [ebp - 0x384]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x388]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x40]
lea esi, [ebp - 0x374]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x58]
lea esi, [ebp - 0x35c]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x364]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 0x360]
pop ecx
mov dword [ebx + 0x54], eax
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x18c]
movsd dword es:[edi], dword [esi]
xor edi, edi
cmp dword [ebx + 0x10c], edi
mov dword [ebx + 0xd8], eax
jne 0x5115dd
mov eax, dword [ebp - 0x2a8]
mov dword [ebx + 0x10c], eax
cmp dword [ebx + 0x110], edi
jne 0x5115f1
mov eax, dword [ebp - 0x2a4]
mov dword [ebx + 0x110], eax
lea esi, [ebx + 0x114]
mov edx, esi
call fcn.004ccc0d
test eax, eax
je 0x511611
lea eax, [ebp - 0x2a0]
push eax
push esi
call fcn.005312a0
pop ecx
pop ecx
cmp dword [0x70ff24], edi
jne 0x511624
mov eax, dword [ebx + 0x10c]
mov dword [0x70ff24], eax
cmp dword [0x70ff28], edi
jne 0x511637
mov eax, dword [ebx + 0x110]
mov dword [0x70ff28], eax
mov edx, esi
call fcn.004ccc0d
test eax, eax
jne 0x511662
push esi
push 0x25
pop ecx
mov eax, 0x70ff2c
call fcn.004ccc3f
lea esi, [ebx + 0x13a]
mov edi, 0x70ff54
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
xor edi, edi
cmp dword [ebp - 0x18c], edi
je 0x5117cd
call fcn.0046b2ee
mov ecx, eax
call fcn.004707d3
cmp dword [ebp - 0x18c], eax
jne 0x5117cd
mov esi, dword [ebp - 0x3bc]
push edi
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f9794
add esp, 0x14
test eax, eax
je 0x5116cc
mov esi, dword [ebp - 0x3bc]
jmp 0x5117bc
push dword [ebp - 0x3c0]
push str.:9:GetLastFTPConnectTime___CRITICAL_ERROR:_An_impossible_phase_has_been_run____Phase__ld__
call fcn.0042b70b
push 4
call fcn.00475a9e
add esp, 0xc
jmp 0x511259
inc dword [0x7101d8]
mov eax, dword [0x7101d8]
add eax, 0xfffffffe
cmp eax, 0x61
ja 0x5117cd
push dword [ebx + 0x54]
lea esi, [ebx + 0x40]
push dword [ebx + 0x50]
push 1
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004fa0a6
mov esi, dword [ebp - 0x3b8]
add esp, 0x14
push eax
push 1
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004fa0a6
add esp, 0x14
push eax
push dword [ebx + 0x2c]
lea esi, [ebx + 0x14]
push dword [ebx + 0x28]
push dword [ebx + 0x24]
push 1
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004fa0a6
mov esi, dword [ebp - 0x3bc]
add esp, 0x14
push eax
push 1
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004fa0a6
add esp, 0x14
push eax
push dword [ebx]
push dword [ebp + 8]
push str.:5:Line__d:GLFTPCT___EAP:_The_global_archive_is_corrupt._Using_local_instead._Global:_bGS___d__GLST___s__GLFT___s__GLNCS___d__GLNCF___d____Local:_bLS___d__LLST___s__LLFT___s__LLNCS___d__LLNCF___d
call fcn.0042b70b
mov esi, dword [ebp - 0x3b8]
add esp, 0x30
push 0
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f9794
add esp, 0x14
test eax, eax
jne 0x5117b6
lea esi, [ebp - 0x3dc]
call fcn.004fb94f
push 0xfffffffffffffff4
sub esp, 0x10
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x3dc]
push eax
movsd dword es:[edi], dword [esi]
call fcn.004f9c3d
mov edi, dword [ebp - 0x3b8]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x18
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x3b8]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004beace
add esp, 0x10
mov eax, dword [ebp - 0x3c8]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.005317e7
leave
ret