Function at 0x419570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x506e38
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x551bd0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x551bd0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x1c], ebx
cmp eax, 0xffffffff
jne 0x4195bc
xor eax, eax
jmp 0x419898
mov ecx, dword [ebx + 0x24]
mov edx, dword [ecx]
test edx, edx
je 0x4195e3
mov ecx, dword [ebx + 0x34]
mov esi, dword [ecx]
add esi, edx
cmp edx, esi
jae 0x4195e3
dec dword [ecx]
mov ebx, dword [ebx + 0x24]
mov ecx, dword [ebx]
lea edx, [ecx + 1]
mov dword [ebx], edx
mov byte [ecx], al
jmp 0x419898
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x419895
cmp dword [ebx + 0x3c], 0
jne 0x419612
movsx eax, al
push ecx
push eax
call fcn.004c5654
add esp, 8
cmp eax, 0xffffffff
je 0x419895
mov eax, dword [ebp + 8]
jmp 0x419898
push 0
push 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1b], al
call fcn.0041a2e0
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x24]
call fcn.00402aa0
mov edi, eax
test edi, edi
je 0x419658
lea ecx, [esp + 0x24]
call fcn.00402aa0
cmp eax, edi
ja 0x419658
lea ecx, [esp + 0x24]
call fcn.00402aa0
add eax, dword [esp + 0x38]
cmp edi, eax
jbe 0x41965d
call fcn.004c043a
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x419678
call fcn.00402aa0
add eax, dword [esp + 0x38]
cmp edi, eax
jb 0x419678
call fcn.004c043a
lea ecx, [esp + 0x24]
call fcn.00402aa0
mov esi, eax
test esi, esi
je 0x4196a5
lea ecx, [esp + 0x24]
call fcn.00402aa0
cmp eax, esi
ja 0x4196a5
lea ecx, [esp + 0x24]
call fcn.00402aa0
add eax, dword [esp + 0x38]
cmp esi, eax
jbe 0x4196aa
call fcn.004c043a
lea edx, [esp + 0x24]
cmp edx, 0xfffffffc
je 0x4196c7
mov ecx, edx
call fcn.00402aa0
add eax, dword [esp + 0x38]
cmp esi, eax
jb 0x4196c7
call fcn.004c043a
lea ecx, [esp + 0x24]
call fcn.0044c3a0
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
add eax, edi
lea edi, [esp + 0x18]
push edi
push eax
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
lea eax, [ebx + 0x44]
push eax
call edx
test eax, eax
jl 0x41988c
cmp eax, 1
jg 0x419849
lea ecx, [esp + 0x24]
call fcn.00402aa0
mov edi, eax
test edi, edi
je 0x419734
lea ecx, [esp + 0x24]
call fcn.00402aa0
cmp eax, edi
ja 0x419734
lea ecx, [esp + 0x24]
call fcn.00402aa0
add eax, dword [esp + 0x38]
cmp edi, eax
jbe 0x419739
call fcn.004c043a
lea eax, [esp + 0x24]
cmp eax, 0xfffffffc
je 0x419756
mov ecx, eax
call fcn.00402aa0
add eax, dword [esp + 0x38]
cmp edi, eax
jb 0x419756
call fcn.004c043a
mov esi, dword [esp + 0x18]
sub esi, edi
je 0x4197c3
lea ecx, [esp + 0x24]
call fcn.00402aa0
mov edi, eax
test edi, edi
je 0x41978b
lea ecx, [esp + 0x24]
call fcn.00402aa0
cmp eax, edi
ja 0x41978b
lea ecx, [esp + 0x24]
call fcn.00402aa0
add eax, dword [esp + 0x38]
cmp edi, eax
jbe 0x419790
call fcn.004c043a
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x4197ab
call fcn.00402aa0
add eax, dword [esp + 0x38]
cmp edi, eax
jb 0x4197ab
call fcn.004c043a
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push edi
call fcn.004c5ec0
add esp, 0x10
cmp esi, eax
jne 0x41988c
lea eax, [esp + 0x13]
mov byte [ebx + 0x41], 1
cmp dword [esp + 0x20], eax
jne 0x41987e
test esi, esi
ja 0x41962b
lea ecx, [esp + 0x24]
call fcn.0044c3a0
cmp eax, 0x20
jae 0x41988c
or ecx, 0xffffffff
sub ecx, dword [esp + 0x38]
cmp ecx, 8
ja 0x419800
call fcn.004dfeea
mov edi, dword [esp + 0x38]
push 0
add edi, 8
push edi
lea ecx, [esp + 0x2c]
call fcn.004027e0
test al, al
je 0x41962b
mov ebx, dword [esp + 0x38]
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], 0
xor esi, esi
call fcn.00402aa0
add eax, ebx
mov dword [eax], esi
push edi
lea ecx, [esp + 0x28]
mov dword [eax + 4], esi
call fcn.00402ad0
mov ebx, dword [esp + 0x1c]
jmp 0x41962b
cmp eax, 3
jne 0x41988c
mov eax, dword [ebx + 0x4c]
mov cl, byte [esp + 0x13]
call fcn.00417fb0
test al, al
je 0x41986e
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x24]
call fcn.00402b90
mov eax, esi
jmp 0x419898
lea ecx, [esp + 0x24]
or esi, 0xffffffff
call fcn.00402b90
mov eax, esi
jmp 0x419898
lea ecx, [esp + 0x24]
call fcn.00402b90
mov eax, dword [ebp + 8]
jmp 0x419898
lea ecx, [esp + 0x24]
call fcn.00402b90
or eax, 0xffffffff
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004bfe65
mov esp, ebp
pop ebp
ret 4