Function at 0x4061c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41bbc8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x422158]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x422158]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
cmp dword [ecx + 0x3c], 0
mov dword [esp + 0x10], ecx
je 0x406555
cmp byte [ecx + 0x41], 0
je 0x406555
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x406548
lea esi, [esp + 0x1c]
call fcn.00405b60
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea ebx, [ebx]
cmp ecx, 0x10
jb 0x406353
test eax, eax
mov ebx, eax
mov dword [esp + 0x14], ebx
je 0x406277
cmp ecx, 0x10
mov edx, eax
jae 0x40625e
lea edx, [esp + 0x20]
cmp edx, ebx
ja 0x406277
cmp ecx, 0x10
mov edx, eax
jae 0x40626d
lea edx, [esp + 0x20]
mov esi, dword [esp + 0x30]
add edx, esi
cmp ebx, edx
jbe 0x406284
call fcn.0040ab95
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
cmp edx, 0xfffffffe
je 0x4062af
cmp ecx, 0x10
mov edx, eax
jae 0x406298
lea edx, [esp + 0x20]
mov esi, dword [esp + 0x30]
add edx, esi
cmp ebx, edx
jb 0x4062af
call fcn.0040ab95
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
cmp ecx, 0x10
mov edi, dword [esp + 0x30]
jb 0x406360
test eax, eax
mov esi, eax
je 0x4062ea
cmp ecx, 0x10
mov edx, eax
jae 0x4062cd
lea edx, [esp + 0x20]
cmp edx, esi
ja 0x4062ea
cmp ecx, 0x10
mov edx, eax
jae 0x4062dc
lea edx, [esp + 0x20]
mov ebx, dword [esp + 0x30]
add edx, ebx
cmp esi, edx
mov ebx, dword [esp + 0x14]
jbe 0x4062f7
call fcn.0040ab95
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
cmp edx, 0xfffffffe
je 0x406318
cmp ecx, 0x10
jae 0x406309
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x30]
add eax, ecx
cmp esi, eax
jb 0x406318
call fcn.0040ab95
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
add ebx, edi
push ebx
push esi
add eax, 0x44
push eax
call edx
sub eax, 0
je 0x406369
sub eax, 1
je 0x406371
sub eax, 2
lea ecx, [esp + 0x1c]
jne 0x406543
jmp 0x406550
lea ebx, [esp + 0x20]
mov dword [esp + 0x14], ebx
jmp 0x406253
lea esi, [esp + 0x20]
jmp 0x4062c2
mov eax, dword [esp + 0x10]
mov byte [eax + 0x41], 0
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
mov eax, dword [esp + 0x20]
jb 0x406514
test eax, eax
mov esi, eax
je 0x4063ac
cmp ecx, 0x10
mov edx, eax
jae 0x406393
lea edx, [esp + 0x20]
cmp edx, esi
ja 0x4063ac
cmp ecx, 0x10
mov edx, eax
jae 0x4063a2
lea edx, [esp + 0x20]
mov edi, dword [esp + 0x30]
add edx, edi
cmp esi, edx
jbe 0x4063b9
call fcn.0040ab95
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
cmp edx, 0xfffffffe
je 0x4063e4
cmp ecx, 0x10
mov edx, eax
jae 0x4063cd
lea edx, [esp + 0x20]
mov edi, dword [esp + 0x30]
add edx, edi
cmp esi, edx
jb 0x4063e4
call fcn.0040ab95
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
sub edi, esi
je 0x406475
cmp ecx, 0x10
jb 0x40651d
test eax, eax
mov esi, eax
je 0x406423
cmp ecx, 0x10
mov edx, eax
jae 0x40640a
lea edx, [esp + 0x20]
cmp edx, esi
ja 0x406423
cmp ecx, 0x10
mov edx, eax
jae 0x406419
lea edx, [esp + 0x20]
mov ebx, dword [esp + 0x30]
add edx, ebx
cmp esi, edx
jbe 0x406430
call fcn.0040ab95
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
cmp edx, 0xfffffffe
je 0x406451
cmp ecx, 0x10
jae 0x406442
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x30]
add eax, ecx
cmp esi, eax
jb 0x406451
call fcn.0040ab95
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x4c]
push eax
push edi
push 1
push esi
call fcn.0040b153
add esp, 0x10
cmp edi, eax
jne 0x40653f
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
cmp byte [edx + 0x41], 0
je 0x40654c
test edi, edi
jne 0x406240
or edx, 0xffffffff
sub edx, dword [esp + 0x30]
cmp edx, 8
ja 0x4064a4
call fcn.00409371
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
add esi, 8
cmp esi, 0xfffffffe
jbe 0x4064bd
call fcn.00409371
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
cmp ecx, esi
jae 0x406526
mov eax, dword [esp + 0x30]
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.00401d20
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
test esi, esi
jbe 0x406240
cmp ecx, 0x10
mov ecx, eax
jae 0x4064eb
lea ecx, [esp + 0x20]
mov edx, dword [esp + 0x30]
xor eax, eax
add ecx, edx
mov dword [ecx], eax
mov dword [ecx + 4], eax
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], esi
jae 0x40650b
lea eax, [esp + 0x20]
mov byte [eax + esi], 0
jmp 0x406232
lea esi, [esp + 0x20]
jmp 0x406388
lea esi, [esp + 0x20]
jmp 0x4063ff
test esi, esi
jne 0x4064da
cmp ecx, 0x10
mov dword [esp + 0x30], esi
jae 0x406537
lea eax, [esp + 0x20]
mov byte [eax], 0
jmp 0x406232
lea ecx, [esp + 0x1c]
call fcn.004016a0
xor al, al
jmp 0x406557
lea ecx, [esp + 0x1c]
call fcn.004016a0
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0040a3a1
mov esp, ebp
pop ebp
ret