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

Disassembly:
push ebp
lea ebp, [esp - 0x13fcc]
mov eax, 0x1404c
call fcn.00422b90
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x13fc8], eax
mov eax, dword [ebp + 0x13fd4]
push ebx
push esi
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x13fd8]
push edi
mov esi, ecx
mov dword [ebp - 0x3c], eax
lea eax, [esi + 0xc]
push 0x4461d0
push eax
call fcn.0042330d
mov ebx, eax
xor edi, edi
pop ecx
pop ecx
cmp ebx, edi
jne 0x41406f
xor al, al
jmp 0x414439
push 0x444164
push dword [ebp - 0x44]
call fcn.0042330d
pop ecx
pop ecx
mov dword [ebp - 0x40], eax
cmp eax, edi
jne 0x41408e
push ebx
call fcn.00422f10
pop ecx
jmp 0x414068
mov eax, dword [ebp - 0x3c]
cmp eax, edi
jne 0x41409b
lea eax, [esi + 0x138]
push edi
push eax
call fcn.00421c60
pop ecx
mov ecx, dword [esi + 0x2c0]
lea eax, [eax + ecx + 0x1e]
push eax
push ebx
call fcn.00424b13
push 0x38
lea eax, [ebp - 0x80]
push edi
push eax
mov dword [ebp - 0x44], edi
call fcn.00420210
push 0x38
push str.1.1.3
push edi
push 8
push 0xfffffffffffffff1
push 8
lea eax, [ebp - 0x80]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x5c], 0x41400f
mov dword [ebp - 0x60], 0x413ffe
call fcn.0041cc70
push dword [ebp - 0x40]
call fcn.00424b98
add esp, 0x3c
mov edi, 0xa000
jmp 0x4141a6
push dword [ebp - 0x40]
lea eax, [ebp - 0x38]
push edi
push 1
push eax
call fcn.0042322c
add esp, 0x10
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4141ae
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x44]
call fcn.0041d170
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x48]
add esp, 0xc
lea ecx, [ebp + 0x9fc8]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], edi
test eax, eax
jbe 0x414183
cmp dword [ebp - 0x70], 0
jne 0x414170
push ebx
push 1
lea eax, [ebp + 0x9fc8]
push edi
push eax
call fcn.00423bee
lea eax, [ebp + 0x9fc8]
add esp, 0x10
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0041b700
cmp dword [ebp - 0x7c], 0
pop ecx
pop ecx
ja 0x41414b
mov eax, edi
sub eax, dword [ebp - 0x70]
je 0x41419d
push ebx
push 1
push eax
lea eax, [ebp + 0x9fc8]
push eax
call fcn.00423bee
add esp, 0x10
push dword [ebp - 0x40]
call fcn.00424b98
pop ecx
test eax, eax
je 0x4140ff
push dword [ebp - 0x40]
call fcn.00422f10
lea eax, [ebp + 0x9fc8]
pop ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], edi
cmp dword [ebp - 0x70], 0
jne 0x4141e8
push ebx
push 1
lea eax, [ebp + 0x9fc8]
push edi
push eax
call fcn.00423bee
lea eax, [ebp + 0x9fc8]
add esp, 0x10
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x80]
push 4
push eax
call fcn.0041b700
pop ecx
pop ecx
test eax, eax
je 0x4141c3
sub edi, dword [ebp - 0x70]
je 0x414211
push ebx
push 1
lea eax, [ebp + 0x9fc8]
push edi
push eax
call fcn.00423bee
add esp, 0x10
push ebx
call fcn.00424a1b
push 0x1e
lea edi, [esi + 0x264]
push 0
push edi
mov dword [ebp - 0x40], eax
call fcn.00420210
xor eax, eax
mov word [esi + 0x26a], ax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x272], eax
mov eax, dword [ebp - 0x78]
mov dword [esi + 0x27a], eax
mov eax, dword [ebp - 0x6c]
add esp, 0x10
cmp dword [ebp - 0x3c], 0
mov dword [edi], 0x4034b50
mov dword [esi + 0x276], eax
je 0x414262
push dword [ebp - 0x3c]
jmp 0x414269
lea eax, [esi + 0x138]
push eax
call fcn.00421c60
pop ecx
push 8
mov word [esi + 0x27e], ax
pop eax
push 0x14
mov word [esi + 0x26c], ax
pop eax
push 0
push dword [esi + 0x2c0]
mov word [esi + 0x268], ax
push ebx
call fcn.00424b13
push ebx
push 1
push 0x1e
push edi
call fcn.00423bee
add esp, 0x1c
cmp dword [ebp - 0x3c], 0
push ebx
push 1
je 0x4142be
push dword [ebp - 0x3c]
call fcn.00421c60
pop ecx
push eax
push dword [ebp - 0x3c]
jmp 0x4142cd
lea edi, [esi + 0x138]
push edi
call fcn.00421c60
pop ecx
push eax
push edi
call fcn.00423bee
add esp, 0x10
push 0
push dword [ebp - 0x40]
push ebx
call fcn.00424b13
push ebx
push 1
push dword [esi + 0x2bc]
lea edi, [esi + 0x2d4]
push dword [edi]
call fcn.00423bee
push dword [edi]
call fcn.0041fe79
and dword [edi], 0
push 0x2e
lea edi, [esi + 0x282]
push 0
push edi
call fcn.00420210
add esp, 0x2c
cmp dword [ebp - 0x3c], 0
push 0x14
pop eax
mov word [esi + 0x286], ax
mov word [esi + 0x288], ax
mov ax, word [esi + 0x26c]
mov word [esi + 0x28c], ax
mov eax, dword [esi + 0x272]
mov dword [esi + 0x292], eax
mov eax, dword [esi + 0x276]
mov dword [esi + 0x296], eax
mov eax, dword [esi + 0x27a]
mov dword [edi], 0x2014b50
mov dword [esi + 0x29a], eax
je 0x414367
push dword [ebp - 0x3c]
jmp 0x41436e
lea eax, [esi + 0x138]
push eax
call fcn.00421c60
pop ecx
push ebx
push 1
mov word [esi + 0x29e], ax
mov eax, dword [esi + 0x2c0]
push 0x2e
push edi
mov dword [esi + 0x2ac], eax
call fcn.00423bee
add esp, 0x10
cmp dword [ebp - 0x3c], 0
push ebx
push 1
je 0x4143ad
push dword [ebp - 0x3c]
call fcn.00421c60
pop ecx
push eax
push dword [ebp - 0x3c]
jmp 0x4143bc
lea edi, [esi + 0x138]
push edi
call fcn.00421c60
pop ecx
push eax
push edi
call fcn.00423bee
mov eax, dword [ebp - 0x40]
add dword [esi + 0x2bc], 0x2e
add esp, 0x10
inc word [esi + 0x2b8]
inc word [esi + 0x2ba]
cmp dword [ebp - 0x3c], 0
mov dword [esi + 0x2c0], eax
je 0x4143ed
push dword [ebp - 0x3c]
jmp 0x4143f4
lea eax, [esi + 0x138]
push eax
call fcn.00421c60
add dword [esi + 0x2bc], eax
pop ecx
push ebx
xor eax, eax
push 1
mov word [esi + 0x2c4], ax
lea eax, [esi + 0x2b0]
push 0x16
push eax
call fcn.00423bee
lea eax, [ebp - 0x80]
push eax
call fcn.0041bee0
push ebx
call fcn.00422f10
add esp, 0x18
lea eax, [esi + 0xc]
push eax
mov ecx, esi
call fcn.00413f5d
mov al, 1
mov ecx, dword [ebp + 0x13fc8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004201f5
add ebp, 0x13fcc
leave
ret 8