Function at 0x42e130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x515818
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x568cb8]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x568cb8]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
je 0x42e367
cmp byte [ebx + 0x41], 0
je 0x42e367
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x42e35a
push ecx
mov ecx, esp
call fcn.0046c000
lea ecx, [esp + 0x38]
call fcn.00401970
push 0
push 0
lea ecx, [esp + 0x3c]
call fcn.004030b0
push 0
push 8
lea ecx, [esp + 0x3c]
call fcn.00403130
test al, al
je 0x42e1d8
push 0
push 8
push 0
lea ecx, [esp + 0x40]
call fcn.004020c0
push 8
lea ecx, [esp + 0x38]
call fcn.00403250
mov dword [esp + 0x60], 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
call fcn.00401120
mov esi, eax
cmp dword [esi], 0xfffffffc
je 0x42e21b
mov ecx, esi
call fcn.00405e70
test al, al
jne 0x42e205
call fcn.004bb13c
mov ecx, dword [esi]
call fcn.00402cb0
mov ecx, dword [esi]
add eax, dword [ecx + 0x14]
cmp dword [esi + 4], eax
jb 0x42e21b
call fcn.004bb13c
mov edi, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x38]
call fcn.00401120
mov esi, eax
cmp dword [esi], 0xfffffffc
je 0x42e259
mov ecx, esi
call fcn.00405e70
test al, al
jne 0x42e243
call fcn.004bb13c
mov ecx, dword [esi]
call fcn.00402cb0
mov ecx, dword [esi]
add eax, dword [ecx + 0x14]
cmp dword [esi + 4], eax
jb 0x42e259
call fcn.004bb13c
mov esi, dword [esi + 4]
lea ecx, [esp + 0x34]
call fcn.004033e0
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
add eax, edi
lea edi, [esp + 0x10]
push edi
push eax
push esi
lea eax, [ebx + 0x44]
push eax
mov eax, dword [edx + 0x18]
call eax
sub eax, 0
je 0x42e298
sub eax, 1
je 0x42e29c
sub eax, 2
lea ecx, [esp + 0x34]
jne 0x42e355
jmp 0x42e362
mov byte [ebx + 0x41], 0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call fcn.00401120
mov edi, eax
cmp dword [edi], 0xfffffffc
je 0x42e2d7
mov ecx, edi
call fcn.00405e70
test al, al
jne 0x42e2c1
call fcn.004bb13c
mov ecx, dword [edi]
call fcn.00402cb0
mov edx, dword [edi]
add eax, dword [edx + 0x14]
cmp dword [edi + 4], eax
jb 0x42e2d7
call fcn.004bb13c
mov esi, dword [esp + 0x10]
sub esi, dword [edi + 4]
je 0x42e332
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
call fcn.00401120
mov edi, eax
cmp dword [edi], 0xfffffffc
je 0x42e31b
mov ecx, edi
call fcn.00405e70
test al, al
jne 0x42e305
call fcn.004bb13c
mov ecx, dword [edi]
call fcn.00402cb0
mov ecx, dword [edi]
add eax, dword [ecx + 0x14]
cmp dword [edi + 4], eax
jb 0x42e31b
call fcn.004bb13c
mov edx, dword [ebx + 0x4c]
mov edi, dword [edi + 4]
push edx
push esi
push 1
push edi
call fcn.004b965b
add esp, 0x10
cmp esi, eax
jne 0x42e351
cmp byte [ebx + 0x41], 0
je 0x42e35e
test esi, esi
jne 0x42e1e0
push esi
push 8
lea ecx, [esp + 0x3c]
call fcn.00401a30
jmp 0x42e1e0
lea ecx, [esp + 0x34]
call fcn.00402b40
xor al, al
jmp 0x42e369
lea ecx, [esp + 0x34]
call fcn.00402b40
mov al, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004b8307
mov esp, ebp
pop ebp
ret