Function at 0x10018fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x105520d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test byte [eax + 0xa], 4
push ebx
push esi
push edi
lea edi, [eax + 0xa]
mov esi, ecx
mov dword [ebp - 0x8c], eax
lea ebx, [esi + 0x1006304]
je 0x10019140
mov cl, byte [eax]
mov byte [esi + 0x1821], cl
cmp byte [eax], 0x35
push edi
mov ecx, esi
push ebx
jae 0x10018ffc
call fcn.10018c20
jmp 0x10019022
call fcn.10018cb0
cmp byte [edi + 9], 0x10
jne 0x10019022
mov eax, dword [esi + 0x28c8]
test eax, eax
je 0x10019022
push ebx
push str.ADC_IQ_Related:_Config_Summary:__n_s_n
push 8
push eax
call fcn.10115e20
add esp, 0x10
mov ebx, dword [ebp - 0x8c]
mov byte [esi + 0x10052d0], 0
cmp byte [ebx], 0x35
push edi
lea edx, [ebp - 0x84]
mov ecx, esi
push edx
jae 0x1001904b
call fcn.10018eb0
mov eax, dword [esi + 4]
push eax
push 0x38
jmp 0x10019056
call fcn.10018f20
mov eax, dword [esi + 4]
push eax
push 0x4c
lea ecx, [ebp - 0x84]
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
mov dx, word [edi + 0xc]
add esp, 0x10
mov word [esi + 0x10052f2], dx
cmp byte [edi + 9], 0x10
jne 0x100190bf
cmp byte [ebx], 0x35
jb 0x1001908d
mov eax, dword [edi + 0x21]
shr eax, 0xb
mov word [esi + 0x10052f2], ax
jmp 0x100190bf
movzx eax, byte [esi + 0x100785c]
neg eax
sbb eax, eax
and eax, 0xfffea000
add eax, 0x25000
mov ecx, eax
shr ecx, 0xb
mov word [esi + 0x10052f2], cx
movzx edx, byte [edi + 0xe]
imul edx, eax
shr edx, 1
push edx
mov ecx, esi
call fcn.10018740
movzx ecx, word [esi + 0x10052f2]
shl ecx, 0xb
mov eax, ecx
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
push ecx
mov dword [esi + 0x10052e0], eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [esi + 0x10052e8], eax
test eax, eax
jne 0x100194ad
mov eax, dword [esi + 0x28c8]
test eax, eax
je 0x1001910f
push str.Malloc_failed._No_memory_to_collect_data_p_FftData
push 0x10
push eax
call fcn.10115e20
add esp, 0xc
mov esi, dword [esi + 0x28c8]
test esi, esi
je 0x100194ad
push str.Function_QLIB_CGPS_IqPacketParser::Gen8WriteConfigTextFile:_unrecoverable_failure.
push 0x10
push esi
call fcn.10115e20
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x10052cc], 0
jne 0x1001946d
mov byte [ebx], 0
mov cl, byte [eax]
mov byte [esi + 0x1821], cl
cmp byte [eax], 0x35
push edi
mov ecx, esi
push ebx
jae 0x10019168
call fcn.10018c20
jmp 0x10019188
call fcn.10018cb0
mov eax, dword [esi + 0x28c8]
test eax, eax
je 0x10019188
push ebx
push str.ADC_IQ_Related:_Config_Summary:__n_s_n
push 8
push eax
call fcn.10115e20
add esp, 0x10
cmp byte [esi + 0x1817], 0
je 0x1001936b
cmp byte [esi + 0x1819], 0
jne 0x1001936b
lea eax, [esi + 0x1017]
lea edx, [eax + 1]
jmp 0x100191b0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100191b0
sub eax, edx
je 0x100193f4
lea eax, [esi + 0x1017]
push 0x1021caa0
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov ebx, eax
add esp, 8
mov dword [esi], ebx
test ebx, ebx
jne 0x10019227
mov eax, dword [esi + 0x28c8]
test eax, eax
je 0x100194ad
lea ecx, [esi + 0x1017]
push ecx
push str.Could_not_open__s
push 0x10
push eax
call fcn.10115e20
mov edx, dword [esi + 0x28c8]
push str.Function_QLIB_CGPS_IqPacketParser::Gen8WriteConfigTextFile:_unrecoverable_failure.
push 0x10
push edx
call fcn.10115e20
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x8c]
mov byte [esi + 0x1819], 1
mov byte [esi + 0x10052cf], 1
cmp byte [eax], 0x35
push edi
jae 0x1001926d
lea ecx, [ebp - 0x84]
push ecx
mov ecx, esi
call fcn.10018eb0
push ebx
push 0x38
lea edx, [ebp - 0x84]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
mov dword [esi + 0x1007854], 0x38
jmp 0x100192b3
lea eax, [ebp - 0x84]
push eax
mov ecx, esi
call fcn.10018f20
push ebx
push 0x4c
lea ecx, [ebp - 0x84]
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
mov eax, dword [esi + 0x28c8]
add esp, 0x10
mov dword [esi + 0x1007854], 0x4c
test eax, eax
je 0x100192b6
push 0x4c
push str.ADC_IQ_Related:_Wrote_Gen8B_Header_into_IQ_file____d_bytes
push 8
push eax
call fcn.10115e20
add esp, 0x10
mov byte [esi + 0x10052cc], 1
mov dl, byte [edi + 0xe]
mov byte [esi + 0x10052d9], dl
mov ax, word [edi + 0xc]
mov word [esi + 0x10052f2], ax
cmp byte [edi + 9], 0x10
jne 0x10019323
mov ecx, dword [ebp - 0x8c]
cmp byte [ecx], 0x35
jb 0x100192f1
mov edx, dword [edi + 0x21]
shr edx, 0xb
mov word [esi + 0x10052f2], dx
jmp 0x10019323
movzx eax, byte [esi + 0x100785c]
neg eax
sbb eax, eax
and eax, 0xfffea000
add eax, 0x25000
mov ecx, eax
shr ecx, 0xb
mov word [esi + 0x10052f2], cx
movzx edx, byte [edi + 0xe]
imul edx, eax
shr edx, 1
push edx
mov ecx, esi
call fcn.10018740
movzx eax, word [esi + 0x10052f2]
shl eax, 0xb
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
mov dword [esi + 0x10052e0], eax
movzx eax, byte [edi + 9]
cmp eax, 0x12
ja case.0x10019353.12
movzx ecx, byte [eax + 0x100194cc]
jmp dword [ecx*4 + 0x100194c0]
mov byte [ebp - 0x85], 1
mov dword [esi + 0x10052d4], 0
mov eax, dword [esi + 0x28c8]
test eax, eax
je 0x10019385
push str.CGPS_IQ_Data_Log_Record_found...
push 8
push eax
call fcn.10115e20
add esp, 0xc
movzx ebx, word [esi + 0x10052f2]
mov eax, ebx
shl eax, 0xb
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [esi + 0x10052e4], eax
test eax, eax
jne 0x10019413
mov eax, dword [esi + 0x28c8]
test eax, eax
je 0x1001910f
push str.Malloc_failed._No_memory_to_collect_data_p_IqData
jmp 0x10019104
mov byte [ebp - 0x85], 2
mov dword [esi + 0x10052d4], 1
jmp 0x1001936b
mov ecx, dword [esi + 0x28c8]
test ecx, ecx
je 0x1001910f
push eax
push str.Unknown_num_of__bytes_per_sample__for_specified_collect_mode__u_n
push 0x10
push ecx
call fcn.10115e20
add esp, 0x10
jmp 0x1001910f
mov eax, dword [esi + 0x28c8]
test eax, eax
je 0x100194ad
lea ecx, [esi + 0x1017]
push ecx
push str.No_filename__s
jmp 0x100191f6
movzx eax, byte [ebp - 0x85]
imul eax, ebx
shl eax, 0xa
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
mov dword [esi + 0x10052dc], eax
inc eax
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [esi + 0x10052ec], eax
test eax, eax
jne 0x10019472
push str._nError:_Malloc_failed._No_memory_to_track_dropped_packets__n
call dword [sym.imp.MSVCR100.dll_printf]
mov eax, dword [esi + 0x28c8]
add esp, 4
test eax, eax
je 0x1001910f
push str.Malloc_failed._No_memory_to_track_dropped_packets_p_TrackPktNum
jmp 0x10019104
call fcn.100187d0
mov ecx, dword [esi + 0x10052dc]
mov edx, dword [esi + 0x10052ec]
inc ecx
push ecx
push 0
push edx
call sub.MSVCR100.dll_memset
movzx eax, word [esi + 0x10052f2]
mov ecx, dword [esi + 0x10052e4]
shl eax, 0xb
push eax
push 0
push ecx
call sub.MSVCR100.dll_memset
mov dl, byte [edi + 0xf]
add esp, 0x18
mov byte [esi + 0x10052f0], dl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 4