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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3e4
mov eax, dword [0x4e22e4]
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.00490d69
pop ecx
pop ecx
mov ebx, 0x5dd4b8
test eax, eax
je 0x46e905
cmp dword [ebp + 8], esi
jne 0x46e905
lea eax, [esp + 0x1e0]
push eax
push ebx
call fcn.004023a0
pop ecx
pop ecx
test eax, eax
je 0x46eb61
mov esi, str.StoreId.dat
push esi
lea edi, [esp + 0x2e4]
call fcn.00466187
pop ecx
push esi
xor esi, esi
push esi
push esi
call fcn.0045531b
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.0048e8b7
push esi
lea edx, [esp + 0xec]
mov ecx, edi
call fcn.0048f099
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, 0x4ae668
lea ecx, [esp + 0xe0]
call fcn.0048d3dd
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x46e9d6
push edi
push 0x80
lea esi, [esp + 0x60]
call fcn.00441528
push 0
push 0xa
call fcn.00439696
push edi
push 0x100
mov esi, ebx
call fcn.00441528
push 0
push 0xa
call fcn.00439696
push edi
push 1
lea eax, [esp + 0x3c]
push 0x10
push eax
call fcn.00402244
add esp, 0x30
mov ecx, edi
call fcn.0048fcf9
xor esi, esi
mov dword [esp + 0x10], esi
cmp dword [ebp + 8], esi
je 0x46ea02
push 0x2a92
lea eax, [esp + 0x18]
push str.Network.c
push eax
call fcn.0041ced9
add esp, 0xc
test eax, eax
je 0x46ea02
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.0041afd2
add esp, 0x14
test eax, eax
jne 0x46ea41
push 0x2a96
lea eax, [esp + 0x18]
push str.Network.c
push eax
call fcn.0041ced9
xor esi, esi
add esp, 0xc
inc esi
test eax, eax
je 0x46ea44
mov dword [esp + 0x10], esi
jmp 0x46ea44
xor esi, esi
inc esi
lea edx, [esp + 0x1e0]
call fcn.00439c75
test eax, eax
jne 0x46ea7c
lea eax, [esp + 0x1e0]
push eax
push ebx
call fcn.004023a0
pop ecx
pop ecx
test eax, eax
je 0x46ea7c
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.0046e546
pop ecx
mov edx, eax
call fcn.00439c75
test eax, eax
jne 0x46eac0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004023a0
pop ecx
pop ecx
test eax, eax
je 0x46eac0
lea eax, [esp + 0x24]
push eax
mov ecx, 0x80
lea eax, [esp + 0x5c]
call fcn.00438aa8
pop ecx
mov dword [esp + 0x10], esi
cmp dword [esp + 0x10], 0
jne 0x46eace
mov eax, esi
jmp 0x46eb64
push 0x2aab
push str.Network.c
mov edx, 0x4ae7a4
lea ecx, [esp + 0xe0]
call fcn.0048d3dd
pop ecx
pop ecx
mov dword [esp + 0x10], eax
test eax, eax
je 0x46eb64
mov edi, 0x4afe8c
push edi
mov eax, 0x80
lea esi, [esp + 0x5c]
call fcn.00439c34
pop ecx
push dword [esp + 0x10]
mov eax, esi
push eax
call fcn.004416ef
push edi
mov eax, 0x100
mov esi, ebx
call fcn.00439c34
add esp, 0xc
push dword [esp + 0x10]
push ebx
call fcn.004416ef
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push 1
push 0x10
push eax
call fcn.0040257f
mov ecx, dword [esp + 0x28]
call fcn.0048fcf9
push 0
lea edx, [esp + 0x2fc]
lea ecx, [esp + 0xf4]
call fcn.0048f099
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