Function at 0x417ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4f4500]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov edx, ecx
push edi
mov dword [esp + 0xc], edx
cmp ebx, 0xffffffff
jne 0x417edb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004436fd
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edx + 0x24]
cmp dword [ecx], 0
je 0x417f14
mov eax, dword [edx + 0x34]
mov ecx, dword [ecx]
mov esi, dword [eax]
add esi, ecx
cmp ecx, esi
jae 0x417f14
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 + 0x38]
xor ecx, esp
call fcn.004436fd
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edx + 0x4c]
test eax, eax
je 0x418273
cmp dword [edx + 0x3c], 0
jne 0x417f51
push eax
movsx eax, bl
push eax
call fcn.00446be1
add esp, 8
cmp eax, 0xffffffff
je 0x418273
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004436fd
mov esp, ebp
pop ebp
ret 4
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x2c], 0
mov byte [esp + 0x10], bl
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], 8
cmp ecx, 0x10
jae 0x417f7e
lea eax, [esp + 0x2c]
mov byte [eax + 8], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
lea ebx, [ebx]
cmp edx, 0x10
jb 0x418155
mov ebx, ecx
mov dword [esp + 0x14], ebx
test ecx, ecx
je 0x417fc7
mov eax, ecx
cmp edx, 0x10
jae 0x417fae
lea eax, [esp + 0x2c]
cmp eax, ebx
ja 0x417fc7
mov eax, ecx
cmp edx, 0x10
jae 0x417fbd
lea eax, [esp + 0x2c]
mov esi, dword [esp + 0x3c]
add eax, esi
cmp ebx, eax
jbe 0x417fd4
call fcn.00443510
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
cmp eax, 0xfffffffc
je 0x417fff
mov eax, ecx
cmp edx, 0x10
jae 0x417fe8
lea eax, [esp + 0x2c]
mov esi, dword [esp + 0x3c]
add eax, esi
cmp ebx, eax
jb 0x417fff
call fcn.00443510
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x3c]
cmp edx, 0x10
jb 0x418162
mov esi, ecx
test ecx, ecx
je 0x41803a
mov eax, ecx
cmp edx, 0x10
jae 0x41801d
lea eax, [esp + 0x2c]
cmp eax, esi
ja 0x41803a
mov eax, ecx
cmp edx, 0x10
jae 0x41802c
lea eax, [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
add eax, ebx
mov ebx, dword [esp + 0x14]
cmp esi, eax
jbe 0x418047
call fcn.00443510
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
cmp eax, 0xfffffffc
je 0x41806a
mov eax, ecx
cmp edx, 0x10
jae 0x41805b
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
add eax, ecx
cmp esi, eax
jb 0x41806a
call fcn.00443510
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x18]
push eax
add ebx, edi
push ebx
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x21]
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
add eax, 0x44
push eax
call edx
test eax, eax
jl 0x41826a
cmp eax, 1
jg 0x4181e8
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
cmp edx, 0x10
jb 0x41816b
mov esi, ecx
test ecx, ecx
je 0x4180e4
mov eax, ecx
cmp edx, 0x10
jae 0x4180cb
lea eax, [esp + 0x2c]
cmp eax, esi
ja 0x4180e4
mov eax, ecx
cmp edx, 0x10
jae 0x4180da
lea eax, [esp + 0x2c]
mov edi, dword [esp + 0x3c]
add eax, edi
cmp esi, eax
jbe 0x4180f1
call fcn.00443510
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
cmp eax, 0xfffffffc
je 0x41811c
mov eax, ecx
cmp edx, 0x10
jae 0x418105
lea eax, [esp + 0x2c]
mov edi, dword [esp + 0x3c]
add eax, edi
cmp esi, eax
jb 0x41811c
call fcn.00443510
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
sub edi, esi
je 0x4181ad
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040a590
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xfffffffc
je 0x418186
test eax, eax
jne 0x418148
call fcn.00443510
mov eax, dword [esi]
cmp dword [eax + 0x18], 0x10
jb 0x418174
mov ecx, dword [eax + 4]
jmp 0x418177
lea ebx, [esp + 0x2c]
mov dword [esp + 0x14], ebx
jmp 0x417fa3
lea esi, [esp + 0x2c]
jmp 0x418012
lea esi, [esp + 0x2c]
jmp 0x4180c0
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
add edx, ecx
cmp dword [esi + 4], edx
jb 0x418186
call fcn.00443510
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x4c]
mov esi, dword [esi + 4]
push ecx
push edi
push 1
push esi
call fcn.0044770c
add esp, 0x10
cmp edi, eax
jne 0x41826a
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0xc]
mov byte [eax + 0x41], 1
lea eax, [esp + 0x10]
cmp dword [esp + 0x1c], eax
jne 0x41824a
test edi, edi
ja 0x417f90
cmp dword [esp + 0x3c], 0x20
lea ecx, [esp + 0x28]
jae 0x41826e
push 0
push 8
call fcn.00404c90
jmp 0x417f82
cmp eax, 3
jne 0x41826a
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x4c]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00417db0
add esp, 8
test al, al
je 0x418228
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x28]
call fcn.00401db0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004436fd
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x28]
or esi, 0xffffffff
call fcn.00401db0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004436fd
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x28]
call fcn.00401db0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004436fd
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x28]
call fcn.00401db0
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.004436fd
mov esp, ebp
pop ebp
ret 4