Function at 0x46ee9f
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.00490cd1
pop ecx
pop ecx
mov ebx, 0x5dd4c8
test eax, eax
je 0x46ef85
cmp dword [ebp + 8], esi
jne 0x46ef85
lea eax, [esp + 0x1e0]
push eax
push ebx
call fcn.004023a0
pop ecx
pop ecx
test eax, eax
je 0x46f1de
mov esi, str.StoreId.dat
push esi
lea edi, [esp + 0x2e4]
call fcn.004665de
pop ecx
push esi
xor esi, esi
push esi
push esi
call fcn.004557a2
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.0048e81f
push esi
lea edx, [esp + 0xec]
mov ecx, edi
call fcn.0048f001
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 0x2a9e
push str.Network.c
mov edx, 0x4ae668
lea ecx, [esp + 0xe0]
call fcn.0048d34e
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x46f056
push edi
push 0x80
lea esi, [esp + 0x60]
call fcn.00441701
push 0
push 0xa
call fcn.00439866
push edi
push 0x100
mov esi, ebx
call fcn.00441701
push 0
push 0xa
call fcn.00439866
push edi
push 1
lea eax, [esp + 0x3c]
push 0x10
push eax
call fcn.00402244
add esp, 0x30
mov ecx, edi
call fcn.0048fc61
xor esi, esi
mov dword [esp + 0x10], esi
cmp dword [ebp + 8], esi
je 0x46f082
push 0x2aad
lea eax, [esp + 0x18]
push str.Network.c
push eax
call fcn.0041cf84
add esp, 0xc
test eax, eax
je 0x46f082
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.0041b0b3
add esp, 0x14
test eax, eax
jne 0x46f0c1
push 0x2ab1
lea eax, [esp + 0x18]
push str.Network.c
push eax
call fcn.0041cf84
xor esi, esi
add esp, 0xc
inc esi
test eax, eax
je 0x46f0c4
mov dword [esp + 0x10], esi
jmp 0x46f0c4
xor esi, esi
inc esi
lea edx, [esp + 0x1e0]
call fcn.00439e45
test eax, eax
jne 0x46f0fc
lea eax, [esp + 0x1e0]
push eax
push ebx
call fcn.004023a0
pop ecx
pop ecx
test eax, eax
je 0x46f0fc
lea eax, [esp + 0x1e0]
push eax
push ebx
call fcn.00401ba0
pop ecx
pop ecx
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x24]
call fcn.0046ebb6
mov edx, eax
call fcn.00439e45
test eax, eax
jne 0x46f13d
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004023a0
pop ecx
pop ecx
test eax, eax
je 0x46f13d
lea eax, [esp + 0x24]
push eax
mov ecx, 0x80
lea eax, [esp + 0x5c]
call fcn.00438c78
pop ecx
mov dword [esp + 0x10], esi
cmp dword [esp + 0x10], 0
jne 0x46f14b
mov eax, esi
jmp 0x46f1e1
push 0x2ac6
push str.Network.c
mov edx, 0x4ae7a4
lea ecx, [esp + 0xe0]
call fcn.0048d34e
pop ecx
pop ecx
mov dword [esp + 0x10], eax
test eax, eax
je 0x46f1e1
mov edi, 0x4afe8c
push edi
mov eax, 0x80
lea esi, [esp + 0x5c]
call fcn.00439e04
pop ecx
push dword [esp + 0x10]
mov eax, esi
push eax
call fcn.004418c8
push edi
mov eax, 0x100
mov esi, ebx
call fcn.00439e04
add esp, 0xc
push dword [esp + 0x10]
push ebx
call fcn.004418c8
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push 1
push 0x10
push eax
call fcn.0040257f
mov ecx, dword [esp + 0x28]
call fcn.0048fc61
push 0
lea edx, [esp + 0x2fc]
lea ecx, [esp + 0xf4]
call fcn.0048f001
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