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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3e4
mov eax, dword [0x4d82d4]
xor eax, esp
mov dword [esp + 0x3e0], eax
push ebx
push esi
push edi
push 0xff
xor esi, esi
lea eax, [esp + 0x1e5]
push esi
push eax
mov byte [esp + 0x1ec], 0
call fcn.00401f80
add esp, 0xc
mov edi, 0x103
push edi
lea eax, [esp + 0x2e5]
push esi
push eax
mov byte [esp + 0x2ec], 0
call fcn.00401f80
add esp, 0xc
push edi
lea eax, [esp + 0xdd]
push esi
push eax
mov byte [esp + 0xe4], 0
call fcn.00401f80
xor eax, eax
mov word [esp + 0x20], ax
lea edi, [esp + 0x22]
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, [esp + 0x5d]
push esi
push eax
mov byte [esp + 0x64], 0
call fcn.00401f80
add esp, 0xc
push 0x31
lea eax, [esp + 0x29]
push esi
push eax
mov byte [esp + 0x30], 0
call fcn.00401f80
add esp, 0xc
push esi
push esi
lea ecx, [esp + 0x1e8]
call fcn.0048e93a
pop ecx
pop ecx
mov ebx, 0x5cfa00
test eax, eax
je 0x46cea9
cmp dword [ebp + 8], esi
jne 0x46cea9
lea eax, [esp + 0x1e0]
push eax
push ebx
call fcn.004023a0
pop ecx
pop ecx
test eax, eax
je 0x46d105
mov esi, str.StoreId.dat
push esi
lea edi, [esp + 0x2e4]
call fcn.00464ac3
pop ecx
push esi
xor esi, esi
push esi
push esi
call fcn.004541af
pop ecx
pop ecx
push eax
lea eax, [esp + 0xe0]
push str._stemp_s
push eax
call fcn.00401954
lea eax, [esp + 0xe8]
call fcn.0048c2f4
push esi
lea edx, [esp + 0xec]
mov ecx, edi
call fcn.0048cc6a
add esp, 0x14
push 0x10
lea eax, [esp + 0x18]
push esi
push eax
mov byte [esp + 0x64], 0
call fcn.00401f80
add esp, 0xc
push 0x2a83
push str.Network.c
mov edx, 0x4a829c
lea ecx, [esp + 0xe0]
call fcn.0048ae1a
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x46cf7a
push edi
push 0x80
lea esi, [esp + 0x60]
call fcn.0044139f
push 0
push 0xa
call fcn.00439677
push edi
push 0x100
mov esi, ebx
call fcn.0044139f
push 0
push 0xa
call fcn.00439677
push edi
push 1
lea eax, [esp + 0x3c]
push 0x10
push eax
call fcn.00402244
add esp, 0x30
mov ecx, edi
call fcn.0048d8ca
xor esi, esi
mov dword [esp + 0x10], esi
cmp dword [ebp + 8], esi
je 0x46cfa6
push 0x2a92
lea eax, [esp + 0x18]
push str.Network.c
push eax
call fcn.0041de8c
add esp, 0xc
test eax, eax
je 0x46cfa6
mov dword [esp + 0x10], 1
push 1
sub esp, 0x10
lea esi, [esp + 0x28]
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.0041bf85
add esp, 0x14
test eax, eax
jne 0x46cfe5
push 0x2a96
lea eax, [esp + 0x18]
push str.Network.c
push eax
call fcn.0041de8c
xor esi, esi
add esp, 0xc
inc esi
test eax, eax
je 0x46cfe8
mov dword [esp + 0x10], esi
jmp 0x46cfe8
xor esi, esi
inc esi
lea edx, [esp + 0x1e0]
call fcn.00439c56
test eax, eax
jne 0x46d020
lea eax, [esp + 0x1e0]
push eax
push ebx
call fcn.004023a0
pop ecx
pop ecx
test eax, eax
je 0x46d020
lea eax, [esp + 0x1e0]
push eax
push ebx
call fcn.00401ba0
pop ecx
pop ecx
mov dword [esp + 0x10], esi
push 0x32
lea ecx, [esp + 0x28]
call fcn.0046caea
pop ecx
mov edx, eax
call fcn.00439c56
test eax, eax
jne 0x46d064
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004023a0
pop ecx
pop ecx
test eax, eax
je 0x46d064
lea eax, [esp + 0x24]
push eax
mov ecx, 0x80
lea eax, [esp + 0x5c]
call fcn.00438b01
pop ecx
mov dword [esp + 0x10], esi
cmp dword [esp + 0x10], 0
jne 0x46d072
mov eax, esi
jmp 0x46d108
push 0x2aab
push str.Network.c
mov edx, 0x4a82dc
lea ecx, [esp + 0xe0]
call fcn.0048ae1a
pop ecx
pop ecx
mov dword [esp + 0x10], eax
test eax, eax
je 0x46d108
mov edi, 0x4a9914
push edi
mov eax, 0x80
lea esi, [esp + 0x5c]
call fcn.00439c15
pop ecx
push dword [esp + 0x10]
mov eax, esi
push eax
call fcn.004414c1
push edi
mov eax, 0x100
mov esi, ebx
call fcn.00439c15
add esp, 0xc
push dword [esp + 0x10]
push ebx
call fcn.004414c1
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push 1
push 0x10
push eax
call fcn.0040257f
mov ecx, dword [esp + 0x28]
call fcn.0048d8ca
push 0
lea edx, [esp + 0x2fc]
lea ecx, [esp + 0xf4]
call fcn.0048cc6a
add esp, 0x1c
xor eax, eax
inc eax
mov ecx, dword [esp + 0x3ec]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret