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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, ecx
push 0x41dab4
push eax
call edi
mov esi, eax
mov dword [ebx + 0x3fa8], 0
push str._nZarezhdane_na_paket
mov dword [ebp - 0x218], esi
mov dword [ebx + 0x3fa4], 0
mov dword [ebx + 0x3fa0], 0x3d090
call fcn.004015e0
mov eax, dword [ebx + 0x3fa0]
xor ecx, ecx
add esp, 0xc
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a2e7
add esp, 4
mov dword [ebx + 0x3f9c], eax
lea eax, [ebp - 0x20c]
push eax
push 0x41dd04
push esi
call fcn.00401640
mov eax, dword [ebp - 0x20c]
add esp, 0xc
test eax, eax
js 0x409ff4
push eax
push 0x41e550
call fcn.004015e0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x208]
push eax
push 0x41e554
push esi
call fcn.00401640
imul edx, dword [ebp - 0x20c], 0x64
lea ecx, [ebp - 0x208]
add esp, 0x18
add edx, 0x180
add edx, ebx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x409e20
lea ecx, [ebp - 0x108]
mov eax, 0x41e55c
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409e60
test dl, dl
je 0x409e5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409e60
add eax, 2
add ecx, 2
test dl, dl
jne 0x409e40
xor eax, eax
jmp 0x409e65
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409e77
mov eax, dword [ebp - 0x20c]
mov byte [ebx + eax + 0xea], 0
lea ecx, [ebp - 0x108]
mov eax, 0x41e560
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409ea2
test dl, dl
je 0x409e9e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409ea2
add eax, 2
add ecx, 2
test dl, dl
jne 0x409e82
xor eax, eax
jmp 0x409ea7
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409f0b
mov eax, dword [ebp - 0x20c]
mov byte [ebx + eax + 0xea], 1
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push str._d_f
push esi
call fcn.00401640
mov ecx, dword [ebx + 0x2aebc]
add esp, 0x10
movzx edx, byte [ebp - 0x210]
test ecx, ecx
movzx eax, cl
cmovg edx, eax
mov eax, dword [ebp - 0x20c]
mov byte [ebx + eax + 0x54], dl
mov eax, dword [ebp - 0x20c]
movss xmm0, dword [ebp - 0x214]
movss dword [ebx + eax*4 + 0x3d44], xmm0
lea eax, [ebp - 0x208]
push 0x41e14c
push eax
call edi
mov edi, eax
lea esi, [ebx + 0x5e24]
push edi
push 0x2c
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
imul ecx, dword [ebp - 0x20c], 0x2c
movups xmm0, xmmword [esi]
push edi
push 2
movups xmmword [ecx + ebx + 0x3fac], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ecx + ebx + 0x3fbc], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ecx + ebx + 0x3fcc], xmm0
mov eax, dword [esi + 0x28]
mov dword [ecx + ebx + 0x3fd4], eax
mov ecx, dword [ebx + 0x3fa4]
mov eax, dword [ebx + 0x3f9c]
mov esi, dword [ebx + 0x5e4c]
shr esi, 1
push esi
lea eax, [eax + ecx*2]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebx + 0x3fa4]
mov dword [ebx + eax*4 + 0x5974], ecx
mov eax, dword [ebp - 0x20c]
mov dword [ebx + eax*4 + 0x5bcc], esi
add dword [ebx + 0x3fa4], esi
push dword [ebx + 0x3fa4]
push str._nTOP___d
call fcn.004015e0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
add esp, 0x34
push eax
push 0x41dd04
push esi
call fcn.00401640
mov eax, dword [ebp - 0x20c]
add esp, 0xc
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
test eax, eax
jns 0x409de4
push esi
mov dword [ebx + 0x3fa8], 0x96
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp dword [ebx + 0x2ade8], 0
je 0x40a05e
lea eax, [ebx + 0x2ae58]
push 0x41e578
push eax
call edi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea ecx, [ebx + 0x54]
mov edi, eax
push edi
push 1
push 0x5dd0
push ecx
call esi
push edi
push 1
lea eax, [ebx + 0x3fa4]
push 4
push eax
call esi
push edi
push 2
push dword [ebx + 0x3fa4]
push dword [ebx + 0x3f9c]
call esi
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x3c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a150
mov esp, ebp
pop ebp
ret 4