Function at 0x10033034
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, 0x400
mov esi, ecx
cmp edi, eax
mov dword [ebp - 8], esi
jb 0x1003305a
mov eax, 0x100000
cmp edi, eax
jbe 0x1003305c
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov dword [ebp + 0xc], eax
jle 0x10033268
add eax, 0x19
cmp eax, 0x64
jae 0x10033268
lea eax, [ebp - 0x6c]
push str.MyWebSearchBar__Shared09
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ebx, [esi + 0x28]
lea eax, [ebp - 0x6c]
push eax
mov ecx, ebx
call fcn.10031dfa
test eax, eax
je 0x10033268
cmp dword [ebp + 0x10], 0
je 0x100330e5
mov eax, 0x12c
sub eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x198]
push eax
push 0
push str.History
push 0x1003d0e0
push 0x10040fb8
call fcn.10020a39
add esp, 0x18
test eax, eax
je 0x10033261
cmp dword [ebp + 0x10], 0
mov dword [esi + 0x10], edi
je 0x10033165
push dword [ebp + 8]
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.10031fbd
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, 0x10000080
push 0
push ebx
push 3
push 0
mov edi, 0xc0000000
push 3
lea eax, [ebp - 0x198]
push edi
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x10033154
push 0
push ebx
push 4
push 0
push 3
lea eax, [ebp - 0x198]
push edi
push eax
mov dword [ebp - 4], 1
call esi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp - 8]
jmp 0x10033179
mov eax, dword [ebp - 8]
lea ecx, [eax + 0x28]
call fcn.10032008
and dword [ebp - 4], 0
jmp 0x1003314f
or dword [ebp + 0xc], 0xffffffff
push 0xffffffffffffffff
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.10031fbd
cmp dword [ebp + 0x10], 0
je 0x10033189
cmp dword [ebp + 0xc], 0xffffffff
je 0x10033241
lea eax, [ebp - 0x6c]
push str.MyWebSearchBar__Shared0A
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x6c]
lea ebx, [esi + 0x1c]
push eax
push 1
push dword [esi + 0x10]
mov ecx, ebx
call fcn.1001fcc1
cmp dword [ebp + 0xc], 0xffffffff
mov edi, eax
je 0x100331cc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp edi, eax
je 0x10033221
cmp dword [esi + 0x20], eax
je 0x10033221
cmp dword [ebp + 0x10], eax
jne 0x100331ef
cmp dword [esi + 0x24], eax
je 0x100331ef
lea ecx, [esi + 0x28]
call fcn.10032008
and dword [ebp - 4], 0
xor eax, eax
cmp dword [ebp - 4], eax
je 0x1003320c
push 0xc
push eax
push dword [esi + 0x20]
call fcn.10013fcd
add esp, 0xc
lea ecx, [esi + 0x28]
call fcn.10031ffe
jmp 0x10033214
lea ecx, [esi + 0x28]
call fcn.1003206e
and dword [esi + 8], 0
and dword [esi + 0xc], 0
push 1
pop eax
jmp 0x1003326a
mov ecx, ebx
call fcn.1001fe39
cmp dword [ebp - 4], 0
je 0x10033253
cmp dword [ebp + 0x10], 0
je 0x10033241
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 4], 0
je 0x10033253
lea ebx, [esi + 0x28]
mov ecx, ebx
call fcn.10031ffe
jmp 0x1003325d
lea ebx, [esi + 0x28]
mov ecx, ebx
call fcn.1003206e
and dword [esi + 0x10], 0
mov ecx, ebx
call fcn.10031fb4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc