Function at 0x41b8f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x573510]
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 0x41b92b
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0045633d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edx + 0x24]
cmp dword [ecx], 0
je 0x41b964
mov eax, dword [edx + 0x34]
mov ecx, dword [ecx]
mov esi, dword [eax]
add esi, ecx
cmp ecx, esi
jae 0x41b964
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.0045633d
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edx + 0x4c]
test eax, eax
je 0x41bc4c
cmp dword [edx + 0x3c], 0
jne 0x41b9a1
push eax
movsx eax, bl
push eax
call fcn.0045b0de
add esp, 8
cmp eax, 0xffffffff
je 0x41bc4c
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0045633d
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 0x41b9d2
lea eax, [esp + 0x44]
mov byte [eax + 8], 0
jmp 0x41b9e5
mov edi, 0x10
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x41b9f3
lea eax, [esp + 0x44]
lea ecx, [esp + 0x40]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00402f10
mov esi, dword [esp + 0x18]
cmp esi, 0xfffffffc
je 0x41ba31
test esi, esi
jne 0x41ba14
call fcn.004560b9
cmp dword [esi + 0x18], edi
jb 0x41ba1e
mov eax, dword [esi + 4]
jmp 0x41ba21
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp dword [esp + 0x1c], edx
jb 0x41ba31
call fcn.004560b9
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x41ba43
lea eax, [esp + 0x44]
lea ecx, [esp + 0x40]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00402f10
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
cmp esi, 0xfffffffc
je 0x41ba84
test esi, esi
jne 0x41ba68
call fcn.004560b9
cmp dword [esi + 0x18], 0x10
jb 0x41ba73
mov eax, dword [esi + 4]
jmp 0x41ba76
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp edi, edx
jb 0x41ba84
call fcn.004560b9
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 0x41bc43
cmp eax, 1
jg 0x41bbc5
mov eax, dword [esp + 0x44]
mov edi, 0x10
cmp dword [esp + 0x58], edi
jae 0x41bad6
lea eax, [esp + 0x44]
lea ecx, [esp + 0x40]
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.00402f10
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
cmp esi, 0xfffffffc
je 0x41bb16
test esi, esi
jne 0x41bafb
call fcn.004560b9
cmp dword [esi + 0x18], edi
jb 0x41bb05
mov eax, dword [esi + 4]
jmp 0x41bb08
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x41bb16
call fcn.004560b9
mov edi, dword [esp + 0x24]
sub edi, ebx
je 0x41bb8a
cmp dword [esp + 0x58], 0x10
mov eax, dword [esp + 0x44]
jae 0x41bb2d
lea eax, [esp + 0x44]
lea ecx, [esp + 0x40]
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.00402f10
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
cmp esi, 0xfffffffc
je 0x41bb6e
test esi, esi
jne 0x41bb52
call fcn.004560b9
cmp dword [esi + 0x18], 0x10
jb 0x41bb5d
mov eax, dword [esi + 4]
jmp 0x41bb60
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x41bb6e
call fcn.004560b9
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push ebx
call fcn.0045b84e
add esp, 0x10
cmp edi, eax
jne 0x41bc43
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
mov byte [edx + 0x41], 1
cmp dword [esp + 0x20], eax
jne 0x41bc23
test edi, edi
ja 0x41b9e0
cmp dword [esp + 0x54], 0x20
lea ecx, [esp + 0x40]
jae 0x41bc47
push 0
push 8
call fcn.00403270
jmp 0x41b9e0
cmp eax, 3
jne 0x41bc43
mov ecx, dword [esi + 0x4c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.0041b6c0
add esp, 8
test al, al
je 0x41bc01
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x40]
call fcn.00401e40
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0045633d
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x40]
or esi, 0xffffffff
call fcn.00401e40
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0045633d
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x40]
call fcn.00401e40
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0045633d
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x40]
call fcn.00401e40
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.0045633d
mov esp, ebp
pop ebp
ret 4