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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e0
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0xff
xor esi, esi
lea eax, [ebp - 0x2c3]
push esi
push eax
mov byte [ebp - 0x2c4], 0
call fcn.005306b0
add esp, 0xc
mov edi, 0x103
push edi
lea eax, [ebp - 0x3cb]
push esi
push eax
mov byte [ebp - 0x3cc], 0
call fcn.005306b0
add esp, 0xc
push edi
lea eax, [ebp - 0x1c3]
push esi
push eax
mov byte [ebp - 0x1c4], 0
call fcn.005306b0
xor eax, eax
mov word [ebp - 0x3e0], si
lea edi, [ebp - 0x3de]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
push 0x7f
stosw word es:[edi], ax
lea eax, [ebp - 0xbb]
push esi
push eax
mov byte [ebp - 0xbc], 0
call fcn.005306b0
add esp, 0xc
push 0x31
lea eax, [ebp - 0x3b]
push esi
push eax
mov byte [ebp - 0x3c], 0
call fcn.005306b0
add esp, 0xc
push esi
push esi
lea ecx, [ebp - 0x2c4]
call fcn.0042e062
test eax, eax
pop ecx
pop ecx
mov ebx, 0x6f18b8
je 0x476c97
cmp dword [ebp + 8], esi
jne 0x476c97
lea eax, [ebp - 0x2c4]
push eax
push ebx
call fcn.00531180
test eax, eax
pop ecx
pop ecx
je 0x476f35
mov esi, str.StoreId.dat
push esi
lea edi, [ebp - 0x3cc]
call fcn.00470f4a
pop ecx
push esi
xor esi, esi
push esi
push esi
call fcn.00493154
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x1c4]
push str._stemp_s
push eax
call fcn.00531b2f
lea eax, [ebp - 0x1c4]
call fcn.004314ff
push esi
lea edx, [ebp - 0x1c4]
mov ecx, edi
call fcn.004315a3
add esp, 0x14
push 0x10
lea eax, [ebp - 0x3e0]
push esi
push eax
mov byte [ebp - 0xbc], 0
call fcn.005306b0
add esp, 0xc
push 0x29ee
push str..Network.c
mov edx, 0x54f4b8
lea ecx, [ebp - 0x1c4]
call fcn.00434df1
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x476d78
push edi
lea eax, [ebp - 0xbc]
push 0x80
push eax
call fcn.005335c6
add esp, 0xc
push esi
push 0xa
lea esi, [ebp - 0xbc]
call fcn.004cd934
push edi
push 0x100
push ebx
call fcn.005335c6
add esp, 0x14
push 0
push 0xa
mov esi, ebx
call fcn.004cd934
push edi
push 1
lea eax, [ebp - 0x3e0]
push 0x10
push eax
call fcn.00530e93
add esp, 0x18
mov ecx, edi
call fcn.00435239
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 0x3d0], esi
je 0x476daa
push 0x29fd
lea eax, [ebp - 0x3e0]
push str..Network.c
push eax
call fcn.004fb92f
add esp, 0xc
test eax, eax
je 0x476daa
mov dword [ebp - 0x3d0], 1
push 1
sub esp, 0x10
lea esi, [ebp - 0x3e0]
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 0x476def
push 0x2a01
lea eax, [ebp - 0x3e0]
push str..Network.c
push eax
call fcn.004fb92f
xor esi, esi
add esp, 0xc
inc esi
test eax, eax
je 0x476df2
mov dword [ebp - 0x3d0], esi
jmp 0x476df2
xor esi, esi
inc esi
lea edx, [ebp - 0x2c4]
call fcn.004ccc0d
test eax, eax
jne 0x476e29
lea eax, [ebp - 0x2c4]
push eax
push ebx
call fcn.00531180
test eax, eax
pop ecx
pop ecx
je 0x476e29
lea eax, [ebp - 0x2c4]
push eax
push ebx
call fcn.005312a0
pop ecx
pop ecx
mov dword [ebp - 0x3d0], esi
push 0x32
lea ecx, [ebp - 0x3c]
call fcn.0046b0c2
pop ecx
mov edx, eax
call fcn.004ccc0d
test eax, eax
jne 0x476e70
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00531180
test eax, eax
pop ecx
pop ecx
je 0x476e70
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x80
lea eax, [ebp - 0xbc]
call fcn.004ccc3f
pop ecx
mov dword [ebp - 0x3d0], esi
cmp dword [ebp - 0x3d0], 0
jne 0x476e80
mov eax, esi
jmp 0x476f38
push 0x2a16
push str..Network.c
mov edx, 0x54f4b4
lea ecx, [ebp - 0x1c4]
call fcn.00434df1
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x3d0], eax
jne 0x476ebd
lea eax, [ebp - 0x1c4]
push eax
push str.:7:UpdateGlobalStoreData___FAILED:_fopen___s____wb____FAILED:_could_not_write_data_to_the_temp_file_
call fcn.0042b70b
pop ecx
pop ecx
xor eax, eax
jmp 0x476f38
mov edi, 0x54f250
push edi
mov eax, 0x80
lea esi, [ebp - 0xbc]
call fcn.004ccd0f
pop ecx
push dword [ebp - 0x3d0]
mov eax, esi
push eax
call fcn.0053393b
push edi
mov eax, 0x100
mov esi, ebx
call fcn.004ccd0f
add esp, 0xc
push dword [ebp - 0x3d0]
push ebx
call fcn.0053393b
push dword [ebp - 0x3d0]
lea eax, [ebp - 0x3e0]
push 1
push 0x10
push eax
call fcn.00531aad
mov ecx, dword [ebp - 0x3d0]
call fcn.00435239
push 0
lea edx, [ebp - 0x3cc]
lea ecx, [ebp - 0x1c4]
call fcn.004315a3
add esp, 0x1c
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret