Function at 0x42cd60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x515418
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x568cb8]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x568cb8]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x42cda8
xor eax, eax
jmp 0x42cffc
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x42cdd1
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x42cdd1
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x42cffc
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x42cff9
cmp dword [edi + 0x3c], 0
jne 0x42cdff
movsx edx, bl
push eax
push edx
call fcn.004bf79c
add esp, 8
cmp eax, 0xffffffff
je 0x42cff9
mov eax, ebx
jmp 0x42cffc
push 0
push 8
lea ecx, [esp + 0x44]
mov byte [esp + 0x18], bl
call fcn.0042d830
mov dword [esp + 0x68], 0
jmp 0x42ce20
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
call fcn.00401120
mov esi, eax
cmp dword [esi], 0xfffffffc
je 0x42ce5b
mov ecx, esi
call fcn.00405e70
test al, al
jne 0x42ce45
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 0x42ce5b
call fcn.004bb13c
mov ebx, dword [esi + 4]
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x40]
call fcn.00401120
mov esi, eax
cmp dword [esi], 0xfffffffc
je 0x42ce99
mov ecx, esi
call fcn.00405e70
test al, al
jne 0x42ce83
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 0x42ce99
call fcn.004bb13c
mov esi, dword [esi + 4]
lea ecx, [esp + 0x3c]
call fcn.004033e0
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
add eax, ebx
lea ebx, [esp + 0x14]
push ebx
push eax
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x21]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [edi + 0x44]
push eax
call edx
test eax, eax
jl 0x42cff0
cmp eax, 1
jg 0x42cfa8
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.00401120
mov ebx, eax
cmp dword [ebx], 0xfffffffc
je 0x42cf17
mov ecx, ebx
call fcn.00405e70
test al, al
jne 0x42cf01
call fcn.004bb13c
mov ecx, dword [ebx]
call fcn.00402cb0
mov ecx, dword [ebx]
add eax, dword [ecx + 0x14]
cmp dword [ebx + 4], eax
jb 0x42cf17
call fcn.004bb13c
mov esi, dword [esp + 0x14]
sub esi, dword [ebx + 4]
je 0x42cf72
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x40]
call fcn.00401120
mov ebx, eax
cmp dword [ebx], 0xfffffffc
je 0x42cf5b
mov ecx, ebx
call fcn.00405e70
test al, al
jne 0x42cf45
call fcn.004bb13c
mov ecx, dword [ebx]
call fcn.00402cb0
mov ecx, dword [ebx]
add eax, dword [ecx + 0x14]
cmp dword [ebx + 4], eax
jb 0x42cf5b
call fcn.004bb13c
mov edx, dword [edi + 0x4c]
mov ebx, dword [ebx + 4]
push edx
push esi
push 1
push ebx
call fcn.004b965b
add esp, 0x10
cmp esi, eax
jne 0x42cff0
lea eax, [esp + 0x10]
mov byte [edi + 0x41], 1
cmp dword [esp + 0x18], eax
jne 0x42cfe2
test esi, esi
ja 0x42ce20
lea ecx, [esp + 0x3c]
call fcn.004033e0
lea ecx, [esp + 0x3c]
cmp eax, 0x20
jae 0x42cff4
push 0
push 8
call fcn.00401a30
jmp 0x42ce20
cmp eax, 3
jne 0x42cff0
mov ecx, dword [edi + 0x4c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.0042be20
add esp, 8
test al, al
je 0x42cfd2
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x3c]
call fcn.00402b40
mov eax, esi
jmp 0x42cffc
lea ecx, [esp + 0x3c]
or esi, 0xffffffff
call fcn.00402b40
mov eax, esi
jmp 0x42cffc
lea ecx, [esp + 0x3c]
call fcn.00402b40
mov eax, dword [ebp + 8]
jmp 0x42cffc
lea ecx, [esp + 0x3c]
call fcn.00402b40
or eax, 0xffffffff
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004b8307
mov esp, ebp
pop ebp
ret 4