Function at 0x456200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x786e48
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x867e6c]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edx, ecx
mov dword [esp + 0x18], edx
cmp ebx, 0xffffffff
jne 0x45624c
xor eax, eax
jmp 0x45650a
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x456275
mov eax, dword [edx + 0x34]
mov esi, dword [eax]
add esi, ecx
cmp ecx, esi
jae 0x456275
dec dword [eax]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov byte [ecx], bl
mov eax, ebx
jmp 0x45650a
mov eax, dword [edx + 0x4c]
test eax, eax
je 0x456507
cmp dword [edx + 0x3c], 0
jne 0x4562a3
push eax
movsx eax, bl
push eax
call fcn.00646c38
add esp, 8
cmp eax, 0xffffffff
je 0x456507
mov eax, ebx
jmp 0x45650a
mov ecx, 0xf
xor eax, eax
mov edi, 0x10
mov byte [esp + 0x48], 0
mov byte [esp + 0x17], bl
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], 8
cmp ecx, edi
jae 0x4562d4
lea eax, [esp + 0x48]
mov byte [eax + 8], 0
mov dword [esp + 0x70], 0
jmp 0x4562e7
mov edi, 0x10
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], edi
jae 0x4562f5
lea eax, [esp + 0x48]
lea ecx, [esp + 0x44]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.004057b0
mov esi, dword [esp + 0x1c]
cmp esi, 0xfffffffc
je 0x456333
test esi, esi
jne 0x456316
call fcn.006441b7
cmp dword [esi + 0x18], edi
jb 0x456320
mov eax, dword [esi + 4]
jmp 0x456323
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp dword [esp + 0x20], edx
jb 0x456333
call fcn.006441b7
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], edi
jae 0x456345
lea eax, [esp + 0x48]
lea ecx, [esp + 0x44]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.004057b0
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
cmp esi, 0xfffffffc
je 0x456386
test esi, esi
jne 0x45636a
call fcn.006441b7
cmp dword [esi + 0x18], 0x10
jb 0x456375
mov eax, dword [esi + 4]
jmp 0x456378
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp edi, edx
jb 0x456386
call fcn.006441b7
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
add eax, ebx
push eax
push edi
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
push eax
lea eax, [esi + 0x44]
push eax
call edx
test eax, eax
jl 0x4564fe
cmp eax, 1
jg 0x4564bb
mov eax, dword [esp + 0x48]
mov edi, 0x10
cmp dword [esp + 0x5c], edi
jae 0x4563d8
lea eax, [esp + 0x48]
lea ecx, [esp + 0x44]
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.004057b0
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
cmp esi, 0xfffffffc
je 0x456418
test esi, esi
jne 0x4563fd
call fcn.006441b7
cmp dword [esi + 0x18], edi
jb 0x456407
mov eax, dword [esi + 4]
jmp 0x45640a
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x456418
call fcn.006441b7
mov edi, dword [esp + 0x28]
sub edi, ebx
je 0x456488
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x45642f
lea eax, [esp + 0x48]
lea ecx, [esp + 0x44]
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.004057b0
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
cmp esi, 0xfffffffc
je 0x456470
test esi, esi
jne 0x456454
call fcn.006441b7
cmp dword [esi + 0x18], 0x10
jb 0x45645f
mov eax, dword [esi + 4]
jmp 0x456462
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x456470
call fcn.006441b7
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push ebx
call fcn.00644ce0
add esp, 0x10
cmp edi, eax
jne 0x4564fe
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x17]
mov byte [edx + 0x41], 1
cmp dword [esp + 0x24], eax
jne 0x4564f0
test edi, edi
ja 0x4562e2
cmp dword [esp + 0x58], 0x20
lea ecx, [esp + 0x44]
jae 0x456502
push 0
push 8
call fcn.0043adb0
jmp 0x4562e2
cmp eax, 3
jne 0x4564fe
mov eax, dword [esi + 0x4c]
mov cl, byte [esp + 0x17]
call fcn.00451060
test al, al
je 0x4564e0
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x44]
call fcn.004012f0
mov eax, esi
jmp 0x45650a
lea ecx, [esp + 0x44]
or esi, 0xffffffff
call fcn.004012f0
mov eax, esi
jmp 0x45650a
lea ecx, [esp + 0x44]
call fcn.004012f0
mov eax, dword [ebp + 8]
jmp 0x45650a
lea ecx, [esp + 0x44]
call fcn.004012f0
or eax, 0xffffffff
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00643db8
mov esp, ebp
pop ebp
ret 4