Function at 0x4d51b7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c0
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x3a8], 0
lea eax, [ebp - 0x108]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x104
push 0
push eax
call fcn.004e4da0
mov esi, 0x14c
lea eax, [ebp - 0x3a0]
push esi
push 0
push eax
call fcn.004e4da0
push esi
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.004e4da0
add esp, 0x24
test ebx, ebx
jne 0x4d521b
xor eax, eax
jmp 0x4d5778
push 0x1b52
mov edi, str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push edi
push 4
call fcn.004625f2
push 0x1b55
push edi
push 4
call fcn.00460f18
add esp, 0x18
test eax, eax
jne 0x4d5269
push 4
call fcn.0046733c
mov dword [esp], 0x1b58
push edi
push 4
call fcn.00460f18
add esp, 0xc
test eax, eax
jne 0x4d5269
push str.:4:GetLastFTPConnectTime___could_not_logon_to_TAMS:_LockTAMSServer_LTS_FTPRESULTS__FAILED_
call fcn.00425c08
pop ecx
mov dword [ebp - 0x3ac], 1
xor esi, esi
mov eax, esi
sub eax, 0
je 0x4d52a0
sub eax, 1
jne 0x4d5661
lea eax, [ebp - 0x108]
push str.FTPCRF.fat
push eax
call fcn.0046379e
pop ecx
pop ecx
lea edi, [ebp - 0x254]
jmp 0x4d52cb
push str.FTPCRF.fat
push 0
push 0
call fcn.0047ced0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x108]
push 0x50d2a0
push eax
call fcn.00404f28
add esp, 0x10
lea edi, [ebp - 0x3a0]
push 0x14c
push 0
push edi
call fcn.004e4da0
xor eax, eax
push eax
push 0x61a8
push eax
push 0x20
push 3
push eax
push 7
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.004286d2
add esp, 0x30
mov dword [ebp - 0x3a4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x3a4]
cmp ecx, 0xffffffff
jne 0x4d5353
cmp eax, 2
je 0x4d5469
cmp eax, 3
je 0x4d5469
cmp eax, 0xf
je 0x4d5469
cmp eax, 0x35
je 0x4d5469
push eax
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:3:GetLastFTPConnectTime___FAILED:_CreateFile___s___FAILED:__s_ld
call fcn.00425c08
add esp, 0x10
jmp 0x4d5462
push 0
lea eax, [ebp - 0x3a8]
push eax
push 0x14c
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d53be
cmp dword [ebp - 0x3a8], 0x14c
jb 0x4d53be
push edi
call fcn.004d7697
pop ecx
test eax, eax
je 0x4d539f
push edi
call fcn.004d7697
push eax
lea eax, [ebp - 0x108]
push eax
push str.:7:GetLastFTPConnectTime___read_data_from___s__and_it_seems_to_be_corrupt:_IsFtpConnectTimeInvalid___returned__ld
call fcn.00425c08
add esp, 0x10
push 0x1bad
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push str.GetLastFTPConnectTime_Track
push dword [ebp - 0x3a4]
call fcn.00426fac
jmp 0x4d5469
push 0x1b90
mov edi, str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push edi
push str.GetLastFTPConnectTime_Track
push dword [ebp - 0x3a4]
call fcn.00426fac
mov eax, dword [0x6a1384]
lea ecx, [eax + 1]
mov dword [0x6a1384], ecx
cmp eax, 5
jae 0x4d5462
lea eax, [ebp - 0x108]
push str._GetLastError_
push dword [ebp - 0x3a8]
push 0x14c
push eax
push ecx
cmp ecx, 2
ja 0x4d5455
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.004255b9
push 4
call fcn.0046733c
push 9
call fcn.004dce1d
add esp, 0x20
test eax, eax
jne 0x4d5433
push str.:7:SetLastFTPConnectTime_FTP_UPDATE_FAIL__FAILED_within_GetLastFTPConnectTime___while_trying_to_fix_an_invalid_file_size_on_the_server.
call fcn.004255b9
pop ecx
push 0x1b9b
push edi
push 4
call fcn.00460f18
add esp, 0xc
test eax, eax
jne 0x4d5452
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.00425c08
pop ecx
dec esi
jmp 0x4d5469
push str.:7:_d_of_5:_GetLastFTPConnectTime___FAILED:_ReadFile___s____ld__FAILED:_Could_only_read__ld_bytes:__s
call fcn.004255b9
add esp, 0x18
and dword [ebp - 0x3ac], 0
inc esi
cmp esi, 2
jl 0x4d5275
push 4
call fcn.0046733c
mov eax, dword [ebp - 0x254]
lea esi, [ebp - 0x254]
push 0x53
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], eax
lea esi, [ebp - 0x250]
lea eax, [ebx + 4]
mov edi, eax
mov dword [ebp - 0x3a4], eax
mov eax, dword [ebp - 0x230]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x22c]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x1ac]
mov dword [ebx + 0xa8], eax
lea eax, [ebp - 0x198]
movsd dword es:[edi], dword [esi]
push 0x19
push eax
lea eax, [ebx + 0xbc]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x14]
lea esi, [ebp - 0x240]
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 + 0xac]
lea esi, [ebp - 0x1a8]
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.004a11a5
mov eax, dword [ebp - 0x1cc]
lea edi, [ebx + 0x68]
lea esi, [ebp - 0x1ec]
mov dword [ebx + 0x88], eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1c8]
push 0x19
push eax
lea eax, [ebx + 0x8c]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a11a5
mov eax, dword [ebp - 0x374]
lea esi, [ebp - 0x370]
mov dword [ebx + 0x2c], eax
add esp, 0x1c
lea eax, [ebx + 0x30]
mov edi, eax
mov dword [ebp - 0x3b0], eax
mov eax, dword [ebp - 0x350]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 0x34c]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x54], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x40]
lea esi, [ebp - 0x360]
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 - 0x348]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebx + 0x10c], 0
mov eax, dword [ebp - 0x17c]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0xd8], eax
jne 0x4d5590
mov eax, dword [ebp - 0x294]
mov dword [ebx + 0x10c], eax
cmp dword [ebx + 0x110], 0
jne 0x4d55a5
mov eax, dword [ebp - 0x290]
mov dword [ebx + 0x110], eax
lea esi, [ebx + 0x114]
push esi
call fcn.0049f486
pop ecx
test eax, eax
je 0x4d55c5
lea eax, [ebp - 0x28c]
push eax
push esi
call fcn.004ee4d0
pop ecx
pop ecx
cmp dword [0x6a11dc], 0
jne 0x4d55d9
mov eax, dword [ebx + 0x10c]
mov dword [0x6a11dc], eax
cmp dword [0x6a11e0], 0
jne 0x4d55ed
mov eax, dword [ebx + 0x110]
mov dword [0x6a11e0], eax
push esi
call fcn.0049f486
pop ecx
test eax, eax
jne 0x4d5617
push 0x25
push esi
push 0x6a11e4
call fcn.004a11a5
mov edi, 0x6a120c
lea esi, [ebx + 0x13a]
add esp, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x17c], 0
je 0x4d5772
call fcn.0046039d
push eax
call fcn.004608c3
pop ecx
cmp dword [ebp - 0x17c], eax
jne 0x4d5772
push 0
sub esp, 0x10
lea esi, [ebx + 4]
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.004c95b5
add esp, 0x14
test eax, eax
je 0x4d567b
mov esi, dword [ebp - 0x3a4]
jmp 0x4d5761
push esi
push str.:9:GetLastFTPConnectTime___CRITICAL_ERROR:_An_impossible_phase_has_been_run____Phase__ld__
call fcn.004255b9
push 4
call fcn.0046733c
add esp, 0xc
jmp 0x4d5214
mov eax, dword [0x6a1388]
inc eax
mov dword [0x6a1388], eax
add eax, 0xfffffffe
cmp eax, 0x61
ja 0x4d5772
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.004c9acc
add esp, 0x14
lea esi, [ebx + 0x30]
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.004c9acc
add esp, 0x14
lea esi, [ebx + 0x14]
push eax
push dword [ebx + 0x2c]
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.004c9acc
add esp, 0x14
lea esi, [ebx + 4]
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.004c9acc
add esp, 0x14
push eax
push dword [ebx]
push dword [ebp + 0xc]
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.004255b9
mov ebx, dword [ebp - 0x3b0]
add esp, 0x30
mov esi, ebx
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.004c95b5
add esp, 0x14
test eax, eax
jne 0x4d575f
lea eax, [ebp - 0x3c0]
push eax
call fcn.004c9010
pop ecx
push 0xfffffffffffffff4
sub esp, 0x10
mov esi, eax
mov edi, esp
lea eax, [ebp - 0x3c0]
push eax
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.004c7fa4
mov esi, eax
mov edi, ebx
add esp, 0x18
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 esi, ebx
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.00492a18
add esp, 0x10
mov eax, dword [ebp - 0x3ac]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret