Function at 0x42e340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52a378
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x580ca0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x580ca0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
je 0x42e577
cmp byte [ebx + 0x41], 0
je 0x42e577
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x42e56a
push ecx
mov ecx, esp
call fcn.00458b70
lea ecx, [esp + 0x38]
call fcn.00402c40
push 0
push 0
lea ecx, [esp + 0x3c]
call fcn.00403180
push 0
push 8
lea ecx, [esp + 0x3c]
call fcn.00403200
test al, al
je 0x42e3e8
push 0
push 8
push 0
lea ecx, [esp + 0x40]
call fcn.004020b0
push 8
lea ecx, [esp + 0x38]
call fcn.00403350
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 0x42e42b
mov ecx, esi
call fcn.004060e0
test al, al
jne 0x42e415
call fcn.004bd101
mov ecx, dword [esi]
call fcn.00403320
mov ecx, dword [esi]
add eax, dword [ecx + 0x14]
cmp dword [esi + 4], eax
jb 0x42e42b
call fcn.004bd101
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 0x42e469
mov ecx, esi
call fcn.004060e0
test al, al
jne 0x42e453
call fcn.004bd101
mov ecx, dword [esi]
call fcn.00403320
mov ecx, dword [esi]
add eax, dword [ecx + 0x14]
cmp dword [esi + 4], eax
jb 0x42e469
call fcn.004bd101
mov esi, dword [esi + 4]
lea ecx, [esp + 0x34]
call fcn.004034e0
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 0x42e4a8
sub eax, 1
je 0x42e4ac
sub eax, 2
lea ecx, [esp + 0x34]
jne 0x42e565
jmp 0x42e572
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 0x42e4e7
mov ecx, edi
call fcn.004060e0
test al, al
jne 0x42e4d1
call fcn.004bd101
mov ecx, dword [edi]
call fcn.00403320
mov edx, dword [edi]
add eax, dword [edx + 0x14]
cmp dword [edi + 4], eax
jb 0x42e4e7
call fcn.004bd101
mov esi, dword [esp + 0x10]
sub esi, dword [edi + 4]
je 0x42e542
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
call fcn.00401120
mov edi, eax
cmp dword [edi], 0xfffffffc
je 0x42e52b
mov ecx, edi
call fcn.004060e0
test al, al
jne 0x42e515
call fcn.004bd101
mov ecx, dword [edi]
call fcn.00403320
mov ecx, dword [edi]
add eax, dword [ecx + 0x14]
cmp dword [edi + 4], eax
jb 0x42e52b
call fcn.004bd101
mov edx, dword [ebx + 0x4c]
mov edi, dword [edi + 4]
push edx
push esi
push 1
push edi
call fcn.004bb52b
add esp, 0x10
cmp esi, eax
jne 0x42e561
cmp byte [ebx + 0x41], 0
je 0x42e56e
test esi, esi
jne 0x42e3f0
push esi
push 8
lea ecx, [esp + 0x3c]
call fcn.00401a10
jmp 0x42e3f0
lea ecx, [esp + 0x34]
call fcn.00402c20
xor al, al
jmp 0x42e579
lea ecx, [esp + 0x34]
call fcn.00402c20
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.004ba1db
mov esp, ebp
pop ebp
ret