Function at 0x41b890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x576510]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov edx, ecx
push edi
mov dword [esp + 0x14], edx
cmp ebx, 0xffffffff
jne 0x41b8cb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0045759d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edx + 0x24]
cmp dword [ecx], 0
je 0x41b904
mov eax, dword [edx + 0x34]
mov ecx, dword [ecx]
mov esi, dword [eax]
add esi, ecx
cmp ecx, esi
jae 0x41b904
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
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0045759d
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edx + 0x4c]
test eax, eax
je 0x41bbec
cmp dword [edx + 0x3c], 0
jne 0x41b941
push eax
movsx eax, bl
push eax
call fcn.0045c416
add esp, 8
cmp eax, 0xffffffff
je 0x41bbec
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0045759d
mov esp, ebp
pop ebp
ret 4
mov ecx, 0xf
xor eax, eax
mov edi, 0x10
mov byte [esp + 0x44], 0
mov byte [esp + 0x10], bl
mov dword [esp + 0x58], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], 8
cmp ecx, edi
jae 0x41b972
lea eax, [esp + 0x44]
mov byte [eax + 8], 0
jmp 0x41b985
mov edi, 0x10
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x41b993
lea eax, [esp + 0x44]
lea ecx, [esp + 0x40]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00402e60
mov esi, dword [esp + 0x18]
cmp esi, 0xfffffffc
je 0x41b9d1
test esi, esi
jne 0x41b9b4
call fcn.00457319
cmp dword [esi + 0x18], edi
jb 0x41b9be
mov eax, dword [esi + 4]
jmp 0x41b9c1
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp dword [esp + 0x1c], edx
jb 0x41b9d1
call fcn.00457319
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x41b9e3
lea eax, [esp + 0x44]
lea ecx, [esp + 0x40]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00402e60
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
cmp esi, 0xfffffffc
je 0x41ba24
test esi, esi
jne 0x41ba08
call fcn.00457319
cmp dword [esi + 0x18], 0x10
jb 0x41ba13
mov eax, dword [esi + 4]
jmp 0x41ba16
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp edi, edx
jb 0x41ba24
call fcn.00457319
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
add eax, ebx
push eax
push edi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x21]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 0x44]
push eax
call edx
test eax, eax
jl 0x41bbe3
cmp eax, 1
jg 0x41bb65
mov eax, dword [esp + 0x44]
mov edi, 0x10
cmp dword [esp + 0x58], edi
jae 0x41ba76
lea eax, [esp + 0x44]
lea ecx, [esp + 0x40]
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.00402e60
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
cmp esi, 0xfffffffc
je 0x41bab6
test esi, esi
jne 0x41ba9b
call fcn.00457319
cmp dword [esi + 0x18], edi
jb 0x41baa5
mov eax, dword [esi + 4]
jmp 0x41baa8
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x41bab6
call fcn.00457319
mov edi, dword [esp + 0x24]
sub edi, ebx
je 0x41bb2a
cmp dword [esp + 0x58], 0x10
mov eax, dword [esp + 0x44]
jae 0x41bacd
lea eax, [esp + 0x44]
lea ecx, [esp + 0x40]
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.00402e60
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
cmp esi, 0xfffffffc
je 0x41bb0e
test esi, esi
jne 0x41baf2
call fcn.00457319
cmp dword [esi + 0x18], 0x10
jb 0x41bafd
mov eax, dword [esi + 4]
jmp 0x41bb00
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x41bb0e
call fcn.00457319
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push ebx
call fcn.0045cb86
add esp, 0x10
cmp edi, eax
jne 0x41bbe3
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
mov byte [edx + 0x41], 1
cmp dword [esp + 0x20], eax
jne 0x41bbc3
test edi, edi
ja 0x41b980
cmp dword [esp + 0x54], 0x20
lea ecx, [esp + 0x40]
jae 0x41bbe7
push 0
push 8
call fcn.004031c0
jmp 0x41b980
cmp eax, 3
jne 0x41bbe3
mov ecx, dword [esi + 0x4c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.0041b660
add esp, 8
test al, al
je 0x41bba1
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x40]
call fcn.00401d50
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0045759d
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x40]
or esi, 0xffffffff
call fcn.00401d50
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0045759d
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x40]
call fcn.00401d50
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0045759d
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x40]
call fcn.00401d50
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.0045759d
mov esp, ebp
pop ebp
ret 4