Function at 0x4179e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x3c
mov ecx, dword [esp + 0x44]
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
push edi
mov edi, eax
mov eax, 1
mov word [esp + 0x2c], ax
xor eax, eax
mov dword [esp + 0x20], 0x28
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
cmp dword [ecx], eax
je 0x417b2c
xor edx, edx
cmp dword [edi + 0x1c], eax
mov dword [esp + 0x24], 0x100
sete dl
mov dword [esp + 0x28], 0x200
mov dword [esp + 0x14], 4
lea esi, [eax + 2]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
test dword [ecx], eax
je 0x417b1e
cmp dword [esp + 0x18], 0
je 0x417a71
mov edx, dword [edi + esi*4 + 0x10]
mov eax, dword [edi + esi*4 + 0x24]
push ebp
push 1
push edx
push eax
jmp 0x417b16
mov eax, dword [edi + esi*4 + 0x10]
mov dword [esp + 0x34], eax
test esi, esi
jne 0x417a84
add eax, dword [edi + 0xc]
mov dword [esp + 0x34], eax
mov cx, word [esi*2 + 0x46093c]
push ebp
push 1
lea edx, [esp + 0x28]
push 0x28
push edx
mov word [esp + 0x3e], cx
call fcn.00428b8f
add esp, 0x10
test esi, esi
je 0x417acc
mov ecx, dword [edi + esi*4 + 0x2c]
cmp dword [ecx], 0
je 0x417acc
mov edx, esi
dec edx
neg edx
sbb edx, edx
and edx, 0xffffff10
add edx, 0x100
push ebp
call fcn.00417970
add esp, 4
mov eax, dword [edi + esi*4 + 0x10]
mov ecx, dword [edi + esi*4 + 0x24]
push ebp
push 1
push eax
push ecx
call fcn.00428b8f
add esp, 0x10
test esi, esi
jne 0x417b0b
xor ebx, ebx
cmp dword [edi + 0xc], ebx
mov byte [esp + 0x13], 0
jle 0x417b1e
push ebp
push 1
lea edx, [esp + 0x1b]
push 1
push edx
call fcn.00428b8f
inc ebx
add esp, 0x10
cmp ebx, dword [edi + 0xc]
jl 0x417af1
jmp 0x417b1e
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x1c]
push ebp
push 1
push eax
push ecx
call fcn.00428b8f
add esp, 0x10
shr dword [esp + 0x14], 1
dec esi
cmp esi, 0xffffffff
jg 0x417a48
add edi, 0x1c0
mov dword [esp + 0x18], 4
mov esi, 2
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x1c]
mov ebx, 8
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x54]
test dword [eax + ebx*4], edx
je 0x417c0f
movzx eax, byte [ebx + 0x460930]
lea ecx, [eax + eax]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov eax, dword [edi + esi*4 + 0x10]
mov dword [esp + 0x34], eax
test esi, esi
jne 0x417b86
add eax, dword [edi + 0xc]
mov dword [esp + 0x34], eax
mov dx, word [esi*2 + 0x46093c]
push ebp
push 1
lea eax, [esp + 0x28]
push 0x28
push eax
mov word [esp + 0x3e], dx
call fcn.00428b8f
add esp, 0x10
test esi, esi
je 0x417bce
mov ecx, dword [edi + esi*4 + 0x2c]
cmp dword [ecx], 0
je 0x417bce
mov edx, esi
dec edx
neg edx
sbb edx, edx
and edx, 0xffffff10
add edx, 0x100
push ebp
call fcn.00417970
add esp, 4
mov ecx, dword [edi + esi*4 + 0x10]
mov edx, dword [edi + esi*4 + 0x24]
push ebp
push 1
push ecx
push edx
call fcn.00428b8f
add esp, 0x10
test esi, esi
jne 0x417c35
xor ebx, ebx
cmp dword [edi + 0xc], ebx
mov byte [esp + 0x13], 0
jle 0x417c0b
push ebp
push 1
lea eax, [esp + 0x1b]
push 1
push eax
call fcn.00428b8f
inc ebx
add esp, 0x10
cmp ebx, dword [edi + 0xc]
jl 0x417bf3
mov ebx, dword [esp + 0x14]
dec ebx
sub edi, 0x38
mov dword [esp + 0x14], ebx
test ebx, ebx
jg 0x417b50
shr dword [esp + 0x18], 1
dec esi
cmp esi, 0xffffffff
jg 0x417b43
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x1c]
push ebp
push 1
push ecx
push edx
call fcn.00428b8f
add esp, 0x10
jmp 0x417c0f