Function at 0x46408b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1484
call fcn.00524dc0
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x114], edi
mov byte [ebp - 0x110], bl
call fcn.005117f0
add esp, 0xc
push 0x1358
lea eax, [ebp - 0x147c]
push ebx
push eax
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x1480], ebx
call fcn.005117f0
add esp, 0xc
cmp edi, ebx
jne 0x4640f6
xor eax, eax
jmp 0x46452a
mov esi, 0x135c
push esi
push ebx
push edi
call fcn.005117f0
add esp, 0xc
push str.SSRF.sat
lea edi, [ebp - 0x110]
call fcn.004682da
mov dword [esp], 0xa36
mov edi, str..Network.c
push edi
push 8
call fcn.00469252
add esp, 0xc
push 0xa3a
push edi
push 8
call fcn.0046c07a
add esp, 0xc
test eax, eax
jne 0x464169
push 8
call fcn.0046cf18
mov dword [esp], 0xa3d
push edi
push 8
call fcn.0046c07a
add esp, 0xc
test eax, eax
jne 0x464169
push str.:4:LoadSubnetScanResults___could_not_logon_to_TAMS:_LockTAMSServer_LTS_SUBNETRESULTS__FAILED_
call fcn.00426c01
pop ecx
push ebx
push 0x61a8
push 0x20
push 3
lea eax, [ebp - 0x110]
push 1
push eax
call fcn.00428fd2
add esp, 0x18
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
mov dword [ebp - 0x118], eax
jne 0x4641e8
push 8
call fcn.0046cf18
mov eax, dword [ebp - 0x118]
cmp eax, 2
pop ecx
je 0x464527
cmp eax, 3
je 0x464527
cmp eax, 0xf
je 0x464527
cmp eax, 0x35
je 0x464527
push eax
push str._GetLastError_
lea eax, [ebp - 0x110]
push eax
push str.:3:LoadSubnetScanResults___FAILED:_CreateFile___s___FAILED:__s_ld
call fcn.00426c01
add esp, 0x10
jmp 0x4640ef
push ebx
lea eax, [ebp - 0x11c]
push eax
push esi
push dword [ebp - 0x114]
mov dword [ebp - 0x11c], ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov ecx, dword [ebp - 0x11c]
je 0x464241
cmp ecx, esi
jb 0x464241
mov eax, dword [ebp - 0x114]
mov eax, dword [eax + 0x1318]
cmp eax, ebx
jl 0x46422b
cmp eax, 0x41
jle 0x4643e4
push 0x41
push eax
lea eax, [ebp - 0x110]
push eax
push str.:9:LoadSubnetScanResults___read_data_from___s__and_it_seems_to_be_corrupt:_The_number_of_entries_in_this_file_is_said_to_be__ld_but_cant_be_more_than__ld_
call fcn.00426c01
jmp 0x46426e
mov eax, dword [0x6c2ad0]
mov edx, eax
inc eax
cmp edx, 0xa
mov dword [0x6c2ad0], eax
jae 0x46428f
cmp ecx, ebx
jbe 0x464273
mov edx, dword [ebp - 0x114]
cmp ecx, dword [edx]
jne 0x464273
push esi
push ecx
push eax
push str.:7:_d_of_10:_LoadSubnetScanResults___FAILED:_The_Subnet_Scan_Results_struct_has_changed_size_from__ld_to__ld_bytes_and_so_cannot_be_loaded.
call fcn.004265da
add esp, 0x10
jmp 0x46428f
push str._GetLastError_
push ecx
push esi
lea ecx, [ebp - 0x110]
push ecx
push eax
push str.:7:_d_of_10:_LoadSubnetScanResults___FAILED:_ReadFile___s____ld__FAILED:_Could_only_read__ld_bytes:__s
call fcn.004265da
add esp, 0x18
call fcn.0042dbeb
push esi
push ebx
push dword [ebp - 0x114]
call fcn.005117f0
add esp, 0xc
push ebx
push 0x61a8
push SQLGetDiagRec
push 4
lea eax, [ebp - 0x110]
push 7
push eax
call fcn.00428fd2
add esp, 0x18
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
je 0x464334
push ebx
lea eax, [ebp - 0x118]
push eax
push esi
push dword [ebp - 0x114]
mov dword [ebp - 0x118], ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4642f7
cmp dword [ebp - 0x118], esi
jae 0x46432d
mov eax, dword [0x6c2ad4]
inc dword [0x6c2ad4]
cmp eax, 0xa
jae 0x46432d
push str._GetLastError_
push dword [ebp - 0x118]
lea eax, [ebp - 0x110]
push esi
push eax
push dword [0x6c2ad4]
push str.:7:_d_of_10:_LoadSubnetScanResults___FAILED:_WriteFile___s____ld_____ld_FAILED:_Could_not_clear_the_corrupted_global_file:__s
call fcn.004265da
add esp, 0x18
call fcn.0042dbeb
jmp 0x46434e
push eax
push str._GetLastError_
lea eax, [ebp - 0x110]
push eax
push str.:5:LoadSubnetScanResults___FAILED:_CreateFileTimeOut___s___FAILED:_Could_not_delete_the_corrupt_data_file:__s_ld
call fcn.00426c01
add esp, 0x10
push str.SSRF.sat
push ebx
push ebx
call fcn.0048a119
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x110]
push 0x533dd4
push eax
call fcn.00511173
push 0xa9e
push str..Network.c
mov edx, 0x530484
lea ecx, [ebp - 0x110]
call fcn.0042d2c6
mov edi, eax
add esp, 0x18
cmp edi, ebx
je 0x4643c4
push edi
push 1
push esi
push dword [ebp - 0x114]
call fcn.005110f1
add esp, 0x10
cmp eax, 1
jae 0x4643bb
lea eax, [ebp - 0x110]
push eax
push str.:7:LoadSubnetScanResults___FAILED:_fwrite___s____wb____FAILED_to_write_zeros_to_the_corrupted_local_file_
call fcn.004265da
pop ecx
pop ecx
mov ecx, edi
call fcn.0042d70e
jmp 0x4643d7
lea eax, [ebp - 0x110]
push eax
push str.:7:LoadSubnetScanResults___FAILED:_fopen___s____rb____FAILED:_could_not_clear_the_corrupted_local_file_
call fcn.004265da
pop ecx
pop ecx
push 8
call fcn.0046cf18
pop ecx
jmp 0x4640ef
call fcn.0042dbeb
push 8
call fcn.0046cf18
mov edi, dword [ebp - 0x114]
pop ecx
push 0x10
add edi, 0x134c
push ebx
push edi
call fcn.005117f0
mov eax, dword [ebp - 0x114]
add esp, 0xc
push 0x10
add eax, 0x132c
push ebx
push eax
mov dword [ebp - 0x118], eax
call fcn.005117f0
add esp, 0xc
push str.SSRF.sat
push ebx
push ebx
call fcn.0048a119
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x110]
push 0x533dd4
push eax
call fcn.00511173
push 0xabe
push str..Network.c
mov edx, 0x530488
lea ecx, [ebp - 0x110]
call fcn.0042d2c6
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x114], eax
jne 0x464494
lea edi, [ebp - 0x110]
call fcn.0042ad00
test eax, eax
je 0x464527
mov eax, edi
push eax
push str.:7:LoadSubnetScanResults___FAILED:_fopen___s____rb____FAILED:_could_not_read_the_local_archive_
call fcn.004265da
pop ecx
pop ecx
jmp 0x464527
push eax
push 1
lea eax, [ebp - 0x1480]
push esi
push eax
call fcn.00511c63
add esp, 0x10
cmp eax, 1
jae 0x4644e2
inc dword [0x6c2ad8]
lea eax, [ebp - 0x110]
push eax
push str.:8:LoadSubnetScanResults___FAILED:_fread___failed_to_read_from_the_local_archive___s_
call fcn.004265da
push 0x10
push ebx
push edi
call fcn.005117f0
add esp, 0x14
push 0x10
push ebx
push dword [ebp - 0x118]
call fcn.005117f0
add esp, 0xc
jmp 0x464502
lea esi, [ebp - 0x134]
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 edi, dword [ebp - 0x118]
lea esi, [ebp - 0x154]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [0x6c2ad8], ebx
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x114]
call fcn.0042d70e
cmp dword [0x6c2ad8], 0xa
jl 0x464527
lea eax, [ebp - 0x110]
call fcn.0042a76b
mov dword [0x6c2ad8], ebx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret