Function at 0x42cfe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5152f8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x568e30]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x568e30]
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 0x42d028
xor eax, eax
jmp 0x42d27c
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x42d051
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x42d051
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 0x42d27c
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x42d279
cmp dword [edi + 0x3c], 0
jne 0x42d07f
movsx edx, bl
push eax
push edx
call fcn.004bc8a5
add esp, 8
cmp eax, 0xffffffff
je 0x42d279
mov eax, ebx
jmp 0x42d27c
push 0
push 8
lea ecx, [esp + 0x44]
mov byte [esp + 0x18], bl
call fcn.0042dab0
mov dword [esp + 0x68], 0
jmp 0x42d0a0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
call fcn.00401120
mov esi, eax
cmp dword [esi], 0xfffffffc
je 0x42d0db
mov ecx, esi
call fcn.00405f00
test al, al
jne 0x42d0c5
call fcn.004b9938
mov ecx, dword [esi]
call fcn.00402bb0
mov ecx, dword [esi]
add eax, dword [ecx + 0x14]
cmp dword [esi + 4], eax
jb 0x42d0db
call fcn.004b9938
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 0x42d119
mov ecx, esi
call fcn.00405f00
test al, al
jne 0x42d103
call fcn.004b9938
mov ecx, dword [esi]
call fcn.00402bb0
mov ecx, dword [esi]
add eax, dword [ecx + 0x14]
cmp dword [esi + 4], eax
jb 0x42d119
call fcn.004b9938
mov esi, dword [esi + 4]
lea ecx, [esp + 0x3c]
call fcn.004011a0
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 0x42d270
cmp eax, 1
jg 0x42d228
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.00401120
mov ebx, eax
cmp dword [ebx], 0xfffffffc
je 0x42d197
mov ecx, ebx
call fcn.00405f00
test al, al
jne 0x42d181
call fcn.004b9938
mov ecx, dword [ebx]
call fcn.00402bb0
mov ecx, dword [ebx]
add eax, dword [ecx + 0x14]
cmp dword [ebx + 4], eax
jb 0x42d197
call fcn.004b9938
mov esi, dword [esp + 0x14]
sub esi, dword [ebx + 4]
je 0x42d1f2
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x40]
call fcn.00401120
mov ebx, eax
cmp dword [ebx], 0xfffffffc
je 0x42d1db
mov ecx, ebx
call fcn.00405f00
test al, al
jne 0x42d1c5
call fcn.004b9938
mov ecx, dword [ebx]
call fcn.00402bb0
mov ecx, dword [ebx]
add eax, dword [ecx + 0x14]
cmp dword [ebx + 4], eax
jb 0x42d1db
call fcn.004b9938
mov edx, dword [edi + 0x4c]
mov ebx, dword [ebx + 4]
push edx
push esi
push 1
push ebx
call fcn.004b86c7
add esp, 0x10
cmp esi, eax
jne 0x42d270
lea eax, [esp + 0x10]
mov byte [edi + 0x41], 1
cmp dword [esp + 0x18], eax
jne 0x42d262
test esi, esi
ja 0x42d0a0
lea ecx, [esp + 0x3c]
call fcn.004011a0
lea ecx, [esp + 0x3c]
cmp eax, 0x20
jae 0x42d274
push 0
push 8
call fcn.00401b40
jmp 0x42d0a0
cmp eax, 3
jne 0x42d270
mov ecx, dword [edi + 0x4c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.0042bfd0
add esp, 8
test al, al
je 0x42d252
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x3c]
call fcn.00402a30
mov eax, esi
jmp 0x42d27c
lea ecx, [esp + 0x3c]
or esi, 0xffffffff
call fcn.00402a30
mov eax, esi
jmp 0x42d27c
lea ecx, [esp + 0x3c]
call fcn.00402a30
mov eax, dword [ebp + 8]
jmp 0x42d27c
lea ecx, [esp + 0x3c]
call fcn.00402a30
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.004b8dd5
mov esp, ebp
pop ebp
ret 4