Function at 0x41a1e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c16b8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x62f570]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x62f570]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [esp + 0x18], ecx
cmp ebx, 0xffffffff
jne 0x41a22a
xor eax, eax
jmp 0x41a561
mov eax, dword [ecx + 0x24]
mov edx, dword [eax]
test edx, edx
je 0x41a253
mov eax, dword [ecx + 0x34]
mov esi, dword [eax]
add esi, edx
cmp edx, esi
jae 0x41a253
dec dword [eax]
mov eax, dword [ecx + 0x24]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov byte [ecx], bl
mov eax, ebx
jmp 0x41a561
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x41a55e
cmp dword [ecx + 0x3c], 0
jne 0x41a281
push eax
movsx eax, bl
push eax
call fcn.00582189
add esp, 8
cmp eax, 0xffffffff
je 0x41a55e
mov eax, ebx
jmp 0x41a561
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x30], 0
mov byte [esp + 0x13], bl
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], 8
cmp ecx, 0x10
jae 0x41a2ae
lea eax, [esp + 0x30]
mov byte [eax + 8], 0
mov dword [esp + 0x58], 0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
cmp edx, 0x10
jb 0x41a482
mov esi, ecx
mov dword [esp + 0x14], esi
test ecx, ecx
je 0x41a2f9
mov eax, ecx
cmp edx, 0x10
jae 0x41a2e0
lea eax, [esp + 0x30]
cmp eax, esi
ja 0x41a2f9
mov eax, ecx
cmp edx, 0x10
jae 0x41a2ef
lea eax, [esp + 0x30]
mov edi, dword [esp + 0x40]
add eax, edi
cmp esi, eax
jbe 0x41a306
call fcn.005807d8
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
cmp eax, 0xfffffffc
je 0x41a331
mov eax, ecx
cmp edx, 0x10
jae 0x41a31a
lea eax, [esp + 0x30]
mov edi, dword [esp + 0x40]
add eax, edi
cmp esi, eax
jb 0x41a331
call fcn.005807d8
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x40]
cmp edx, 0x10
jb 0x41a491
mov edi, ecx
test ecx, ecx
je 0x41a368
mov eax, ecx
cmp edx, 0x10
jae 0x41a34f
lea eax, [esp + 0x30]
cmp eax, edi
ja 0x41a368
mov eax, ecx
cmp edx, 0x10
jae 0x41a35e
lea eax, [esp + 0x30]
mov esi, dword [esp + 0x40]
add eax, esi
cmp edi, eax
jbe 0x41a375
call fcn.005807d8
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
cmp eax, 0xfffffffc
je 0x41a398
mov eax, ecx
cmp edx, 0x10
jae 0x41a389
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x40]
add eax, ecx
cmp edi, eax
jb 0x41a398
call fcn.005807d8
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
add eax, ebx
push eax
push edi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
lea eax, [esi + 0x44]
push eax
call edx
test eax, eax
jl 0x41a555
cmp eax, 1
jg 0x41a512
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
cmp edx, 0x10
jb 0x41a49a
mov edi, ecx
test ecx, ecx
je 0x41a412
mov eax, ecx
cmp edx, 0x10
jae 0x41a3f9
lea eax, [esp + 0x30]
cmp eax, edi
ja 0x41a412
mov eax, ecx
cmp edx, 0x10
jae 0x41a408
lea eax, [esp + 0x30]
mov esi, dword [esp + 0x40]
add eax, esi
cmp edi, eax
jbe 0x41a41f
call fcn.005807d8
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
cmp eax, 0xfffffffc
je 0x41a44a
mov eax, ecx
cmp edx, 0x10
jae 0x41a433
lea eax, [esp + 0x30]
mov esi, dword [esp + 0x40]
add eax, esi
cmp edi, eax
jb 0x41a44a
call fcn.005807d8
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
sub esi, edi
je 0x41a4dc
lea ebx, [esp + 0x24]
lea edi, [esp + 0x2c]
call fcn.00418d70
mov edi, eax
mov eax, dword [edi]
cmp eax, 0xfffffffc
je 0x41a4b5
test eax, eax
jne 0x41a475
call fcn.005807d8
mov eax, dword [edi]
cmp dword [eax + 0x18], 0x10
jb 0x41a4a3
mov ecx, dword [eax + 4]
jmp 0x41a4a6
lea eax, [esp + 0x30]
mov dword [esp + 0x14], eax
mov esi, eax
jmp 0x41a2d5
lea edi, [esp + 0x30]
jmp 0x41a344
lea edi, [esp + 0x30]
jmp 0x41a3ee
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
add edx, ecx
cmp dword [edi + 4], edx
jb 0x41a4b5
call fcn.005807d8
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x4c]
mov edi, dword [edi + 4]
push ecx
push esi
push 1
push edi
call fcn.00582903
add esp, 0x10
cmp esi, eax
jne 0x41a555
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov byte [eax + 0x41], 1
lea eax, [esp + 0x13]
cmp dword [esp + 0x20], eax
jne 0x41a547
test esi, esi
ja 0x41a2c2
cmp dword [esp + 0x40], 0x20
jae 0x41a555
push 0
mov eax, 8
lea edi, [esp + 0x30]
call fcn.0041b670
jmp 0x41a2ba
cmp eax, 3
jne 0x41a555
mov eax, dword [esi + 0x4c]
mov cl, byte [esp + 0x13]
call fcn.00416450
test al, al
je 0x41a537
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x2c]
call fcn.00402960
mov eax, esi
jmp 0x41a561
lea ecx, [esp + 0x2c]
or esi, 0xffffffff
call fcn.00402960
mov eax, esi
jmp 0x41a561
lea ecx, [esp + 0x2c]
call fcn.00402960
mov eax, dword [ebp + 8]
jmp 0x41a561
lea ecx, [esp + 0x2c]
call fcn.00402960
or eax, 0xffffffff
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0057ffd2
mov esp, ebp
pop ebp
ret 4