Function at 0x498d70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68b230
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x76c12c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x70c3cc
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x338], esi
mov dword [ebp - 0x318], ebx
call fcn.00402050
mov edi, 1
mov dword [ebp - 4], edi
call fcn.0040ec90
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
lea ecx, [ebp - 0x218]
push ecx
push ebx
push ebx
push 0x1a
push ebx
mov ecx, eax
call edx
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x498de6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00401f00
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x270]
call fcn.00402050
push 0x1d
push str.MozillaFirefoxprofiles.ini
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 2
call fcn.00401290
sub esp, 0x1c
lea edx, [ebp - 0x270]
mov ecx, esp
mov dword [ebp - 0x320], esp
push edx
call fcn.00403170
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 3
push eax
mov byte [ebp - 4], 2
call fcn.00499110
add esp, 0x20
push ebx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x244]
push 0x70c3cc
push ecx
push ebx
lea ecx, [ebp - 0x254]
call fcn.00403060
test eax, eax
jne 0x498e94
mov byte [esi + 8], 5
mov dword [esi + 0xc], ebx
mov byte [esi], 1
mov dword [ebp - 0x318], edi
jmp 0x4990ba
push 0x5c
push 0x2f
sub esp, 0x1c
lea edx, [ebp - 0x254]
mov ecx, esp
mov dword [ebp - 0x320], esp
push edx
call fcn.00403170
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 5
push eax
mov byte [ebp - 4], 4
call fcn.005610a0
add esp, 0x28
push eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 6
call fcn.00401690
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 4
call fcn.00401750
cmp byte [ebp - 0x238], 1
lea ecx, [ebp - 0x234]
jne 0x498f17
push 0x11
push str.MozillaFirefox_
call fcn.00401290
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x234]
call fcn.004013e0
jmp 0x498f26
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x254]
push edx
call fcn.004018e0
push 0x15
push str._search_metadata.json
lea ecx, [ebp - 0x234]
call fcn.00401290
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x498f4d
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x498f63
mov dword [ebp - 0x318], edi
jmp 0x4990ad
mov dword [ebp - 0x31c], ebx
mov dword [ebp - 0x334], ebx
call fcn.004402f0
mov edi, eax
lea eax, [ebp - 0x334]
push eax
lea ecx, [ebp - 0x31c]
push ecx
sub esp, 0x1c
lea edx, [ebp - 0x234]
mov ecx, esp
mov dword [ebp - 0x320], esp
push edx
call fcn.00403170
mov byte [ebp - 4], 8
mov eax, dword [edi]
mov eax, dword [eax + 0x40]
mov ecx, edi
mov byte [ebp - 4], 4
call eax
cmp al, bl
je 0x4990a3
cmp dword [ebp - 0x31c], ebx
je 0x4990a3
and dword [ebp - 0x328], 0xfffffe00
mov dword [ebp - 0x324], ebx
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 0xb
call fcn.0046fad0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x31c]
push ecx
lea ecx, [ebp - 0x28c]
call fcn.00405250
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x28c]
push edx
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 0xd
call fcn.00404c90
cmp dword [ebp - 0x2cc], 0x10
mov eax, dword [ebp - 0x2e0]
jae 0x499023
lea eax, [ebp - 0x2e0]
mov ecx, dword [ebp - 0x2d0]
push 1
add ecx, eax
push eax
lea edx, [ebp - 0x330]
lea edi, [ebp - 0x310]
call fcn.0046fd80
lea ecx, [ebp - 0x28c]
mov byte [ebp - 0x311], al
mov byte [ebp - 4], 0xc
call fcn.00404b20
cmp byte [ebp - 0x311], bl
jne 0x499093
mov byte [esi + 8], bl
and dword [esi + 8], 0xfffffeff
mov dword [esi + 0xc], ebx
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x318], 1
mov byte [ebp - 4], 0xb
call fcn.00403f80
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 4
call fcn.00469540
jmp 0x4990ba
lea edx, [ebp - 0x330]
push edx
mov ecx, esi
call fcn.00469390
jmp 0x499069
mov dword [ebp - 0x318], 1
mov byte [esi + 8], bl
and dword [esi + 8], 0xfffffeff
mov dword [esi + 0xc], ebx
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 2
call fcn.00401750
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 1
call fcn.00401750
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], bl
call fcn.00401750
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058cf08
mov esp, ebp
pop ebp
ret