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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e0
mov eax, dword [0x5c4e68]
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.005117f0
add esp, 0xc
mov edi, 0x103
push edi
lea eax, [ebp - 0x3cb]
push esi
push eax
mov byte [ebp - 0x3cc], 0
call fcn.005117f0
add esp, 0xc
push edi
lea eax, [ebp - 0x1c3]
push esi
push eax
mov byte [ebp - 0x1c4], 0
call fcn.005117f0
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.005117f0
add esp, 0xc
push 0x31
lea eax, [ebp - 0x3b]
push esi
push eax
mov byte [ebp - 0x3c], 0
call fcn.005117f0
add esp, 0xc
push esi
push esi
lea ecx, [ebp - 0x2c4]
call fcn.0042865d
test eax, eax
pop ecx
pop ecx
mov ebx, 0x6c3870
je 0x46e10d
cmp dword [ebp + 8], esi
jne 0x46e10d
lea eax, [ebp - 0x2c4]
push eax
push ebx
call fcn.005122c0
test eax, eax
pop ecx
pop ecx
je 0x46e3a5
mov esi, str.StoreId.dat
push esi
lea edi, [ebp - 0x3cc]
call fcn.004683e7
pop ecx
push esi
xor esi, esi
push esi
push esi
call fcn.0048a119
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x1c4]
push str._stemp_s
push eax
call fcn.00511173
lea eax, [ebp - 0x1c4]
call fcn.0042a76b
lea edx, [ebp - 0x1c4]
mov ecx, edi
call fcn.0042a80f
push 0x10
lea eax, [ebp - 0x3e0]
push esi
push eax
mov byte [ebp - 0xbc], 0
call fcn.005117f0
add esp, 0x1c
push 0x29ee
push str..Network.c
mov edx, 0x530488
lea ecx, [ebp - 0x1c4]
call fcn.0042d2c6
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x46e1ea
push edi
lea eax, [ebp - 0xbc]
push 0x80
push eax
call fcn.005144a4
add esp, 0xc
push esi
push 0xa
lea esi, [ebp - 0xbc]
call fcn.004c485b
push edi
push 0x100
push ebx
call fcn.005144a4
add esp, 0x14
push 0
push 0xa
mov esi, ebx
call fcn.004c485b
push edi
push 1
lea eax, [ebp - 0x3e0]
push 0x10
push eax
call fcn.00511c63
add esp, 0x18
mov ecx, edi
call fcn.0042d70e
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 0x3d0], esi
je 0x46e21c
push 0x29fd
lea eax, [ebp - 0x3e0]
push str..Network.c
push eax
call fcn.004f2709
add esp, 0xc
test eax, eax
je 0x46e21c
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.004f0665
add esp, 0x14
test eax, eax
jne 0x46e261
push 0x2a01
lea eax, [ebp - 0x3e0]
push str..Network.c
push eax
call fcn.004f2709
xor esi, esi
add esp, 0xc
inc esi
test eax, eax
je 0x46e264
mov dword [ebp - 0x3d0], esi
jmp 0x46e264
xor esi, esi
inc esi
lea edx, [ebp - 0x2c4]
call fcn.004c3b34
test eax, eax
jne 0x46e29b
lea eax, [ebp - 0x2c4]
push eax
push ebx
call fcn.005122c0
test eax, eax
pop ecx
pop ecx
je 0x46e29b
lea eax, [ebp - 0x2c4]
push eax
push ebx
call fcn.005123e0
pop ecx
pop ecx
mov dword [ebp - 0x3d0], esi
push 0x32
lea ecx, [ebp - 0x3c]
call fcn.00462751
pop ecx
mov edx, eax
call fcn.004c3b34
test eax, eax
jne 0x46e2e2
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.005122c0
test eax, eax
pop ecx
pop ecx
je 0x46e2e2
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x80
lea eax, [ebp - 0xbc]
call fcn.004c3b66
pop ecx
mov dword [ebp - 0x3d0], esi
cmp dword [ebp - 0x3d0], 0
jne 0x46e2f2
mov eax, esi
jmp 0x46e3a8
push 0x2a16
push str..Network.c
mov edx, 0x530484
lea ecx, [ebp - 0x1c4]
call fcn.0042d2c6
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x3d0], eax
jne 0x46e32f
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.004265da
pop ecx
pop ecx
xor eax, eax
jmp 0x46e3a8
mov edi, 0x530220
push edi
mov eax, 0x80
lea esi, [ebp - 0xbc]
call fcn.004c3c36
pop ecx
push dword [ebp - 0x3d0]
mov eax, esi
push eax
call fcn.00514819
push edi
mov eax, 0x100
mov esi, ebx
call fcn.004c3c36
add esp, 0xc
push dword [ebp - 0x3d0]
push ebx
call fcn.00514819
push dword [ebp - 0x3d0]
lea eax, [ebp - 0x3e0]
push 1
push 0x10
push eax
call fcn.005110f1
mov ecx, dword [ebp - 0x3d0]
add esp, 0x18
call fcn.0042d70e
lea edx, [ebp - 0x3cc]
lea ecx, [ebp - 0x1c4]
call fcn.0042a80f
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret