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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1484
call fcn.00544890
mov eax, dword [0x5f2e68]
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.005306b0
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.005306b0
add esp, 0xc
cmp edi, ebx
jne 0x46cc45
xor eax, eax
jmp 0x46d07e
mov esi, 0x135c
push esi
push ebx
push edi
call fcn.005306b0
add esp, 0xc
push str.SSRF.sat
lea edi, [ebp - 0x110]
call fcn.00470e3d
mov dword [esp], 0xa36
mov edi, str..Network.c
push edi
push 8
call fcn.00471db5
add esp, 0xc
push 0xa3a
push edi
push 8
call fcn.00474c00
add esp, 0xc
test eax, eax
jne 0x46ccb8
push 8
call fcn.00475a9e
mov dword [esp], 0xa3d
push edi
push 8
call fcn.00474c00
add esp, 0xc
test eax, eax
jne 0x46ccb8
push str.:4:LoadSubnetScanResults___could_not_logon_to_TAMS:_LockTAMSServer_LTS_SUBNETRESULTS__FAILED_
call fcn.0042bd38
pop ecx
push ebx
push 0x61a8
push 3
push 7
push 1
lea eax, [ebp - 0x110]
push eax
push 0x20
pop eax
call fcn.0042eb42
add esp, 0x18
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
mov dword [ebp - 0x118], eax
jne 0x46cd3a
push 8
call fcn.00475a9e
mov eax, dword [ebp - 0x118]
cmp eax, 2
pop ecx
je 0x46d07b
cmp eax, 3
je 0x46d07b
cmp eax, 0xf
je 0x46d07b
cmp eax, 0x35
je 0x46d07b
push eax
push str._GetLastError_
lea eax, [ebp - 0x110]
push eax
push str.:3:LoadSubnetScanResults___FAILED:_CreateFile___s___FAILED:__s_ld
call fcn.0042bd38
add esp, 0x10
jmp 0x46cc3e
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 0x46cd93
cmp ecx, esi
jb 0x46cd93
mov eax, dword [ebp - 0x114]
mov eax, dword [eax + 0x1318]
cmp eax, ebx
jl 0x46cd7d
cmp eax, 0x41
jle 0x46cf38
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.0042bd38
jmp 0x46cdc0
mov eax, dword [0x6f0b18]
mov edx, eax
inc eax
cmp edx, 0xa
mov dword [0x6f0b18], eax
jae 0x46cde1
cmp ecx, ebx
jbe 0x46cdc5
mov edx, dword [ebp - 0x114]
cmp ecx, dword [edx]
jne 0x46cdc5
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.0042b70b
add esp, 0x10
jmp 0x46cde1
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.0042b70b
add esp, 0x18
call fcn.00435716
push esi
push ebx
push dword [ebp - 0x114]
call fcn.005306b0
add esp, 0xc
push ebx
push 0x61a8
push 4
push 7
lea eax, [ebp - 0x110]
push 7
push eax
mov eax, SQLGetDiagRec
call fcn.0042eb42
add esp, 0x18
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
je 0x46ce88
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 0x46ce4b
cmp dword [ebp - 0x118], esi
jae 0x46ce81
mov eax, dword [0x6f0b1c]
inc dword [0x6f0b1c]
cmp eax, 0xa
jae 0x46ce81
push str._GetLastError_
push dword [ebp - 0x118]
lea eax, [ebp - 0x110]
push esi
push eax
push dword [0x6f0b1c]
push str.:7:_d_of_10:_LoadSubnetScanResults___FAILED:_WriteFile___s____ld_____ld_FAILED:_Could_not_clear_the_corrupted_global_file:__s
call fcn.0042b70b
add esp, 0x18
call fcn.00435716
jmp 0x46cea2
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.0042bd38
add esp, 0x10
push str.SSRF.sat
push ebx
push ebx
call fcn.00493154
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x110]
push 0x553c34
push eax
call fcn.00531b2f
push 0xa9e
push str..Network.c
mov edx, 0x54f4b4
lea ecx, [ebp - 0x110]
call fcn.00434df1
mov edi, eax
add esp, 0x18
cmp edi, ebx
je 0x46cf18
push edi
push 1
push esi
push dword [ebp - 0x114]
call fcn.00531aad
add esp, 0x10
cmp eax, 1
jae 0x46cf0f
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.0042b70b
pop ecx
pop ecx
mov ecx, edi
call fcn.00435239
jmp 0x46cf2b
lea eax, [ebp - 0x110]
push eax
push str.:7:LoadSubnetScanResults___FAILED:_fopen___s____rb____FAILED:_could_not_clear_the_corrupted_local_file_
call fcn.0042b70b
pop ecx
pop ecx
push 8
call fcn.00475a9e
pop ecx
jmp 0x46cc3e
call fcn.00435716
push 8
call fcn.00475a9e
mov edi, dword [ebp - 0x114]
pop ecx
push 0x10
add edi, 0x134c
push ebx
push edi
call fcn.005306b0
mov eax, dword [ebp - 0x114]
add esp, 0xc
push 0x10
add eax, 0x132c
push ebx
push eax
mov dword [ebp - 0x118], eax
call fcn.005306b0
add esp, 0xc
push str.SSRF.sat
push ebx
push ebx
call fcn.00493154
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x110]
push 0x553c34
push eax
call fcn.00531b2f
push 0xabe
push str..Network.c
mov edx, 0x54f4b8
lea ecx, [ebp - 0x110]
call fcn.00434df1
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x114], eax
jne 0x46cfe8
lea edi, [ebp - 0x110]
call fcn.00432263
test eax, eax
je 0x46d07b
mov eax, edi
push eax
push str.:7:LoadSubnetScanResults___FAILED:_fopen___s____rb____FAILED:_could_not_read_the_local_archive_
call fcn.0042b70b
pop ecx
pop ecx
jmp 0x46d07b
push eax
push 1
lea eax, [ebp - 0x1480]
push esi
push eax
call fcn.00530e93
add esp, 0x10
cmp eax, 1
jae 0x46d036
inc dword [0x6f0b20]
lea eax, [ebp - 0x110]
push eax
push str.:8:LoadSubnetScanResults___FAILED:_fread___failed_to_read_from_the_local_archive___s_
call fcn.0042b70b
push 0x10
push ebx
push edi
call fcn.005306b0
add esp, 0x14
push 0x10
push ebx
push dword [ebp - 0x118]
call fcn.005306b0
add esp, 0xc
jmp 0x46d056
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 [0x6f0b20], ebx
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x114]
call fcn.00435239
cmp dword [0x6f0b20], 0xa
jl 0x46d07b
lea eax, [ebp - 0x110]
call fcn.004314ff
mov dword [0x6f0b20], ebx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret