Function at 0x41766b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4832e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x127]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x150], esi
mov byte [ebp - 0x128], 0
call fcn.00401f80
add esp, 0xc
push 6
xor eax, eax
and dword [ebp - 0x148], eax
pop ecx
lea edi, [ebp - 0x1f]
mov byte [ebp - 0x20], 0
mov edx, esi
rep stosd dword es:[edi], eax
call fcn.00429ac3
test eax, eax
je 0x4176cb
xor eax, eax
jmp 0x417935
test ebx, ebx
je 0x4176c4
push esi
mov ecx, 0x104
lea eax, [ebp - 0x128]
call fcn.00428a08
pop ecx
mov edx, eax
call fcn.004296d6
mov eax, edx
push eax
mov esi, 0x46f61c
call fcn.00428993
pop ecx
test eax, eax
jne 0x41773d
push eax
push eax
push eax
push eax
push eax
push 0x19
pop ecx
lea eax, [ebp - 0x144]
mov dword [ebp - 0x14c], 1
call fcn.00447069
add esp, 0x14
xor edi, edi
push edi
mov esi, ebx
call fcn.00416bd2
pop ecx
cmp dword [ebx + 0x88], edi
je 0x417732
cmp dword [ebx + 0x24], edi
je 0x417747
xor ecx, ecx
call fcn.00447442
mov esi, eax
jmp 0x41774d
xor edi, edi
mov dword [ebp - 0x14c], edi
jmp 0x41771c
mov esi, dword [ebp - 0x148]
lea edx, [ebp - 0x20]
call fcn.00429ac3
test eax, eax
jne 0x417769
lea eax, [ebp - 0x20]
push eax
push 0x19
lea eax, [ebx + 0x6c]
pop ecx
call fcn.00428a08
pop ecx
cmp esi, edi
je 0x417773
mov dword [ebx + 0x88], esi
mov esi, 0x300c
mov dword [ebx + 0x2f90], 1
mov dword [ebx + 0x24], edi
mov dword [ebx], esi
cmp dword [ebx + 0x90], edi
jne 0x417795
mov dword [ebx + 0x8c], edi
mov eax, 0x1f4
cmp dword [ebx + 0x8c], eax
jle 0x4177a8
mov dword [ebx + 0x8c], eax
cmp dword [ebp - 0x14c], edi
je 0x4177d4
call fcn.0040237f
push eax
push edi
push edi
call fcn.0043b3a3
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x128]
push str._stemp_d.sls
push eax
call fcn.00401954
add esp, 0x10
xor edx, edx
xor eax, eax
cmp eax, 4
jb 0x4177e2
cmp eax, 8
jb 0x4177f6
cmp eax, 0x90
jl 0x4177f0
cmp eax, 0x94
jl 0x4177f6
movzx ecx, byte [ebx + eax]
add edx, ecx
inc eax
cmp eax, esi
jb 0x4177d8
mov eax, dword [ebx + 0x8c]
add edx, esi
cmp eax, edi
jle 0x417836
shl eax, 6
xor ecx, ecx
test eax, eax
jle 0x417834
mov eax, dword [ebx + 0x8c]
shl eax, 6
mov dword [ebp - 0x148], eax
mov eax, dword [ebx + 0x90]
movzx edi, byte [eax + ecx]
add edx, edi
inc ecx
cmp ecx, dword [ebp - 0x148]
jl 0x417825
add edx, ecx
mov dword [ebx + 4], edx
push 0x10c
push str.GetSalesSa7.c
mov edx, 0x46f608
lea ecx, [ebp - 0x128]
call fcn.004580b0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4176c4
push edi
push 1
push esi
push ebx
call fcn.0040257f
add esp, 0x10
cmp eax, 1
je 0x417895
mov ecx, edi
call fcn.0045a2fe
cmp dword [ebp - 0x14c], 0
je 0x4176c4
lea eax, [ebp - 0x128]
call fcn.0045946a
jmp 0x4176c4
mov eax, dword [ebx + 0x8c]
xor esi, esi
cmp eax, esi
jle 0x4178d1
mov dword [ebp - 0x148], esi
mov eax, dword [ebx + 0x90]
add eax, dword [ebp - 0x148]
push edi
push 1
push 0x40
push eax
call fcn.0040257f
add dword [ebp - 0x148], 0x40
add esp, 0x10
inc esi
cmp esi, dword [ebx + 0x8c]
jl 0x4178a7
mov ecx, edi
call fcn.0045a2fe
cmp dword [ebp - 0x14c], 0
je 0x417932
call fcn.004182de
mov edx, dword [ebp - 0x150]
lea ecx, [ebp - 0x128]
mov esi, eax
call fcn.00459bda
test eax, eax
jne 0x417927
call fcn.004182de
sub eax, esi
cmp eax, 0x1388
jae 0x417927
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x150]
lea ecx, [ebp - 0x128]
call fcn.00459bda
lea eax, [ebp - 0x128]
call fcn.0045946a
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401317
leave
ret