Function at 0x100104f0
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x101799e0
call fcn.10145de9
mov edi, ecx
mov dword [ebp - 0x24], edi
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax - 8], esi
mov dword [ebp - 4], esi
lea ecx, [ebp + 8]
jne 0x10010523
call fcn.10003b75
xor eax, eax
lea esp, [ebp - 0x40]
call fcn.10145e6c
ret 8
push esi
call fcn.1000401e
mov ebx, eax
cmp ebx, esi
je 0x1001053e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x10010543
mov dword [ebp - 0x20], esi
jmp 0x1001055c
lea esi, [eax + eax]
mov eax, esi
call fcn.101473b0
mov eax, esp
push 0
push esi
push ebx
push eax
call fcn.1000ff6e
mov dword [ebp - 0x20], eax
lea eax, [edi + 0x38]
push eax
lea ecx, [edi + 0x34]
push ecx
lea esi, [edi + 0x3c]
lea edx, [edi + 0x30]
push esi
mov dword [ebp - 0x18], ecx
mov ebx, 0x101f84b0
push edx
mov ecx, ebx
mov dword [ebp - 0x14], edx
call fcn.100e4eec
xor eax, eax
cmp dword [esi], eax
je 0x10010596
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], eax
je 0x10010596
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], eax
jne 0x10010643
push str.BASIC_RC
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0x93
call fcn.1012352c
add esp, 0x10
test eax, eax
mov dword [ebp - 0x28], eax
mov dword [esi], eax
je 0x100106a3
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
xor edx, edx
test eax, eax
mov dword [ebp - 0x2c], eax
jbe 0x10010604
mov eax, dword [ebp - 0x1c]
lea esi, [edx + eax]
cmp byte [esi], 0x21
jne 0x100105f2
push 0x1a
pop ecx
mov edi, str._adfilter_search_location_
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100105eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov edi, dword [ebp - 0x24]
je 0x100105fc
mov eax, dword [ebp - 0x18]
inc edx
cmp edx, dword [eax]
jb 0x100105cd
jmp 0x10010604
mov ecx, dword [ebp - 0x24]
add ecx, 0x38
mov dword [ecx], edx
lea esi, [edi + 0x38]
mov eax, dword [esi]
test eax, eax
jbe 0x1001061e
push eax
push dword [ebp - 0x2c]
mov ecx, ebx
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
call fcn.100e4e77
cmp dword [ebp - 0x1c], 0
je 0x10010631
push dword [ebp - 0x1c]
call fcn.10145563
and dword [ebp - 0x1c], 0
pop ecx
push esi
push dword [ebp - 0x18]
lea eax, [edi + 0x3c]
push eax
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.100e4eec
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
test esi, esi
je 0x100106a3
mov eax, dword [ebp - 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10010652
sub eax, edx
mov ecx, 0x800
cmp eax, ecx
jae 0x100106a3
cmp dword [edi + 0x3c], 0
je 0x100106a3
mov eax, dword [edi + 0x38]
test eax, eax
je 0x100106a3
push ecx
add eax, esi
push 0x14
push eax
call fcn.10146c80
mov eax, dword [ebp - 0x20]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10010685
sub eax, esi
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, dword [edi + 0x38]
push dword [ebp - 0x20]
push eax
call fcn.10147010
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x10010706
push 0x19
call fcn.10144fc2
test eax, eax
pop ecx
mov dword [ebp - 0x28], eax
jne 0x100106c2
lea ecx, [ebp + 8]
jmp 0x10010511
push 6
pop ecx
mov edi, eax
mov esi, 0x101f30f0
rep movsd dword es:[edi], dword [esi]
push 0x19
pop ecx
push 0
push ecx
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x18]
push 0
mov dword [esi], ecx
push eax
mov ecx, ebx
call fcn.100e4e77
push dword [ebp - 0x28]
call fcn.10145563
mov eax, dword [ebp - 0x24]
pop ecx
lea ecx, [eax + 0x38]
push ecx
push esi
add eax, 0x3c
push eax
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.100e4eec
mov edi, dword [ebp - 0x24]
push dword [ebp + 0xc]
mov ecx, edi
call fcn.10010217
mov esi, eax
cmp esi, 0xffffffff
jne 0x10010728
xor esi, esi
lea ecx, [ebp + 8]
call fcn.10003b75
mov eax, esi
jmp 0x10010518
and dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
mov eax, dword [ebp - 0x14]
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
jmp 0x10010719