Function at 0x10031630
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x100668d8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x43c], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1003167f
mov dword [ebp - 0x438], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x43c], edx
cmp dword [ebp - 0x43c], 0
jl 0x1003169d
cmp dword [ebp - 0x43c], 7
jge 0x1003169d
mov dword [ebp - 0x450], 1
jmp 0x100316a7
mov dword [ebp - 0x450], 0
cmp dword [ebp - 0x450], 0
jne 0x100316bb
xor eax, eax
jne 0x100316b0
xor eax, eax
jmp 0x1003195b
mov cx, word [0x1005756c]
mov word [ebp - 0x430], cx
push 0x206
push 0
lea edx, [ebp - 0x42e]
push edx
call fcn.1003ac40
add esp, 0xc
mov eax, dword [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x438]
push ecx
mov edx, dword [ebp - 0x228]
push edx
push str._option__r_nSearchEngineProtect_SearchBar_d_r_nSearchEngineProtect_AddressBar_d_r_nSearchEngineType_d_r_n
push 0x207
lea eax, [ebp - 0x430]
push eax
call fcn.1002aa40
add esp, 0x18
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x454], ecx
mov edx, dword [ebp - 0x454]
add edx, 2
mov dword [ebp - 0x458], edx
mov eax, dword [ebp - 0x454]
mov cx, word [eax]
mov word [ebp - 0x45a], cx
add dword [ebp - 0x454], 2
cmp word [ebp - 0x45a], 0
jne 0x10031728
mov edx, dword [ebp - 0x454]
sub edx, dword [ebp - 0x458]
sar edx, 1
mov dword [ebp - 0x460], edx
mov eax, dword [ebp - 0x460]
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp - 0x21c]
shr edx, 2
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x21c]
xor edx, edx
mov ecx, 4
div ecx
neg edx
sbb edx, edx
neg edx
add edx, dword [ebp - 0x220]
mov dword [ebp - 0x220], edx
xor ecx, ecx
mov eax, dword [ebp - 0x220]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100324f4
add esp, 4
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x448]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100317dc
xor ecx, ecx
jne 0x100317d1
xor eax, eax
jmp 0x1003195b
mov edx, dword [ebp - 0x220]
shl edx, 2
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.1003ac40
add esp, 0xc
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp - 0x220]
shl edx, 2
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.100112d0
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x440], 0
jmp 0x1003182f
mov edx, dword [ebp - 0x440]
add edx, 1
mov dword [ebp - 0x440], edx
mov eax, dword [ebp - 0x440]
cmp eax, dword [ebp - 0x220]
jge 0x10031858
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
xor edx, 0x4f484951
mov eax, dword [ebp - 4]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
jmp 0x10031820
mov dword [ebp - 0x434], 0
mov dx, word [0x1005763c]
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.1003ac40
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
mov ecx, 0x10067a58
call fcn.1000cbe0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...SearchEngineLib.dat
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 2
push 0
push 7
push 0x40000000
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0xffffffff
je 0x1003193d
mov dword [ebp - 0x444], 0
push 0
lea eax, [ebp - 0x444]
push eax
mov ecx, dword [ebp - 0x220]
shl ecx, 2
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10031930
mov dword [ebp - 0x434], 1
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x44c], edx
mov eax, dword [ebp - 0x44c]
push eax
call fcn.1003a08b
add esp, 4
mov eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1003a5ba
mov esp, ebp
pop ebp
ret 4