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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x5c56f8]
push esi
push edi
push 0x103
xor esi, esi
lea eax, [ebp - 0x10f]
push esi
push eax
mov dword [ebp - 0x118], ebx
mov byte [ebp - 0x110], 0
call fcn.005117f0
add esp, 0xc
push 0x8c
lea eax, [ebp - 0x1ac]
push esi
push eax
mov dword [ebp - 0x1b0], esi
call fcn.005117f0
add esp, 0xc
mov dword [ebp - 0x114], esi
call fcn.004f16be
push 0x323b
push str..Network.c
push 0x280
mov dword [ebp - 0x11c], eax
call fcn.00469252
add esp, 0xc
push str.fTender.cfg
lea edi, [ebp - 0x110]
call fcn.004682da
pop ecx
push esi
push esi
push 0x20
push 4
mov eax, edi
push 0xc0000000
push eax
call fcn.00428fd2
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
mov dword [ebp - 0x120], edi
jne 0x4718e9
push str._GetLastError_
lea eax, [ebp - 0x110]
push eax
push ebx
push str.:5:FlagTenderTypesEnabledLegacyTAMS__d__FAILED:_CreateFileTimeOut__s__FAILED:__s
call fcn.004265da
add esp, 0x10
xor eax, eax
jmp 0x471ad2
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x114]
push eax
mov ebx, 0x90
push ebx
lea eax, [ebp - 0x1b0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47193f
call fcn.0042dbeb
push str._GetLastError_
push dword [ebp - 0x114]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x118]
push str.:5:FlagTenderTypesEnabledLegacyTAMS__d__FAILED:_ReadFile__s__FAILED:_ByteCount_u:__s
call fcn.004265da
add esp, 0x14
jmp 0x4718e2
cmp dword [ebp - 0x114], ebx
jae 0x47196c
push ebx
push dword [ebp - 0x114]
push str.:2:FlagTenderTypesEnabledLegacyTAMS___EAP:_Only__u_of__d_bytes_could_be_read.
call fcn.004265da
add esp, 0xc
push ebx
lea eax, [ebp - 0x1b0]
push esi
push eax
call fcn.005117f0
add esp, 0xc
cmp dword [ebp - 0x1b0], esi
jl 0x47197d
cmp dword [ebp - 0x1b0], 7
jle 0x4719a5
push dword [ebp - 0x1b0]
push str.:6:FlagTenderTypesEnabledLegacyTAMS___EAP:_ttef.iCurSlot_is_invalid:__d
call fcn.004265da
push ebx
lea eax, [ebp - 0x1b0]
push esi
push eax
call fcn.005117f0
add esp, 0x14
cmp dword [ebp - 0x1b0], 7
jl 0x4719db
xor ecx, ecx
lea eax, [ebp - 0x190]
mov edx, dword [ebp + ecx*4 - 0x1a8]
mov dword [ebp + ecx*4 - 0x1ac], edx
lea esi, [eax + 0x10]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc ecx
add eax, 0x10
cmp ecx, 6
movsd dword es:[edi], dword [esi]
jl 0x4719af
mov dword [ebp - 0x1b0], 6
xor esi, esi
mov ecx, dword [ebp - 0x1b0]
xor eax, eax
cmp dword [ebp - 0x118], esi
push 0x3274
sete al
push str..Network.c
lea esi, [ebp - 0x1c0]
mov dword [ebp + ecx*4 - 0x1ac], eax
call fcn.004f26a5
mov edi, dword [ebp - 0x1b0]
shl edi, 4
lea edi, [ebp + edi - 0x190]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
pop ecx
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x120]
inc dword [ebp - 0x1b0]
xor esi, esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x1b0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x471a7a
call fcn.0042dbeb
push str._GetLastError_
push dword [ebp - 0x114]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x118]
push str.:5:FlagTenderTypesEnabledLegacyTAMS__d__FAILED:_WriteFile__s__FAILED:_ByteCount_u:__s
jmp 0x471935
call fcn.0042dbeb
push 0x18
push 6
mov eax, 0x7d8
call fcn.004f37f1
test eax, eax
pop ecx
pop ecx
je 0x471acf
call fcn.004f16be
sub eax, dword [ebp - 0x11c]
cmp eax, 0xfa
jbe 0x471ab5
call fcn.004f16be
sub eax, dword [ebp - 0x11c]
push eax
push 2
jmp 0x471ac2
call fcn.004f16be
sub eax, dword [ebp - 0x11c]
push eax
push esi
push str.:_d:FYI:FlagTenderTypesEnabledLegacyTAMS___took__ums
call fcn.00426c01
add esp, 0xc
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret