Function at 0x410cd0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4496f0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
cmp dword [ebp], 0
je 0x410db4
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
push 0x84
mov dword [esp + 0x64], 0
call fcn.00401120
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x410d49
lea eax, [esp + 0x20]
push eax
mov eax, 0x84
call fcn.004019a0
mov esi, dword [esp + 0x20]
mov eax, dword [ebp + 0xc]
push 0x44
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
add esi, 0xfffffff0
cmp eax, 6
mov dword [esp + 0x60], 0xffffffff
je 0x410d9b
mov eax, dword [esp + 0x74]
mov dword [eax + 4], 1
mov dword [eax], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411426
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x411426
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410db4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x74]
add esi, 4
lea ecx, [esp + 0x6c]
push esi
push ecx
mov ebx, str.prefs.js
mov dword [edi], 0
call fcn.004017d0
add esp, 8
lea edx, [esp + 0x20]
push edx
mov ecx, str._browser.search.selectedEngine_
mov dword [esp + 0x64], 1
call fcn.00401720
push 1
lea eax, [esp + 0x70]
mov ebx, 2
push eax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
mov byte [esp + 0x68], bl
call fcn.00411760
add edi, 8
mov byte [esp + 0x60], 3
call fcn.00402e30
mov byte [esp + 0x60], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410e3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410e62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x70], 0
je 0x410ed3
mov eax, dword [edi]
mov ecx, dword [ebp + 4]
lea edi, [ebp + 4]
push eax
push ecx
call fcn.0042ec21
add esp, 8
test eax, eax
jne 0x410ed3
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x70]
call fcn.00412630
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.0042ec21
add esp, 8
or edx, 0xffffffff
test eax, eax
jne 0x410eb6
mov eax, dword [esp + 0x74]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x20]
jmp 0x4113e5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410ed3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x68]
lea eax, [ebp + 4]
push eax
mov dword [esp + 0x58], eax
call fcn.004139e0
test eax, eax
jne 0x410f14
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
mov dword [ecx + 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41141a
lea edi, [esp + 0x18]
call fcn.00413e60
mov byte [esp + 0x60], 4
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jne 0x410f51
mov ecx, dword [esp + 0x74]
add eax, 0xfffffff0
mov dword [ecx + 4], 1
mov byte [esp + 0x60], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4113f2
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x60], 5
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x68], edi
lea ecx, [ebp + 8]
mov byte [esp + 0x60], 6
mov dword [esp + 0x50], ecx
call fcn.00412ad0
cmp eax, 3
ja case.default.0x410f9e
jmp dword [eax*4 + 0x41143c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
mov ebx, str.baidu.xml
call fcn.004017d0
add esp, 8
lea edi, [esp + 0x1c]
mov byte [esp + 0x60], 7
call fcn.00402e30
lea eax, [esp + 0x20]
mov byte [esp + 0x60], 6
call fcn.00415080
lea eax, [esp + 0x28]
push esi
push eax
mov ebx, str._searchplugins_
call fcn.004017d0
push eax
lea ecx, [esp + 0x30]
push ecx
mov ebx, str.baidu.xml
mov byte [esp + 0x70], 8
call fcn.004017d0
add esp, 0x10
lea edi, [esp + 0x68]
mov byte [esp + 0x60], 9
call fcn.00402e30
lea eax, [esp + 0x24]
call fcn.00415080
lea eax, [esp + 0x28]
jmp 0x411189
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
mov ebx, str.google.xml
call fcn.004017d0
add esp, 8
lea edi, [esp + 0x1c]
mov byte [esp + 0x60], 0xa
call fcn.00402e30
lea eax, [esp + 0x2c]
mov byte [esp + 0x60], 6
call fcn.00415080
lea ecx, [esp + 0x34]
push esi
push ecx
mov ebx, str._searchplugins_
call fcn.004017d0
push eax
lea edx, [esp + 0x3c]
push edx
mov ebx, str.google.xml
mov byte [esp + 0x70], 0xb
call fcn.004017d0
add esp, 0x10
lea edi, [esp + 0x68]
mov byte [esp + 0x60], 0xc
call fcn.00402e30
lea eax, [esp + 0x30]
call fcn.00415080
lea eax, [esp + 0x34]
jmp 0x411189
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ebx, str.yandex.xml
call fcn.004017d0
add esp, 8
lea edi, [esp + 0x1c]
mov byte [esp + 0x60], 0xd
call fcn.00402e30
lea eax, [esp + 0x38]
mov byte [esp + 0x60], 6
call fcn.00415080
lea edx, [esp + 0x40]
push esi
push edx
mov ebx, str._searchplugins_
call fcn.004017d0
push eax
lea eax, [esp + 0x48]
push eax
mov ebx, str.yandex.xml
mov byte [esp + 0x70], 0xe
call fcn.004017d0
add esp, 0x10
lea edi, [esp + 0x68]
mov byte [esp + 0x60], 0xf
call fcn.00402e30
lea eax, [esp + 0x3c]
call fcn.00415080
lea eax, [esp + 0x40]
jmp 0x411189
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
mov ebx, str.yahoo.xml
call fcn.004017d0
add esp, 8
lea edi, [esp + 0x1c]
mov byte [esp + 0x60], 0x10
call fcn.00402e30
lea eax, [esp + 0x44]
mov byte [esp + 0x60], 6
call fcn.00415080
lea eax, [esp + 0x4c]
push esi
push eax
mov ebx, str._searchplugins_
call fcn.004017d0
push eax
lea ecx, [esp + 0x54]
push ecx
mov ebx, str.yahoo.xml
mov byte [esp + 0x70], 0x11
call fcn.004017d0
add esp, 0x10
lea edi, [esp + 0x68]
mov byte [esp + 0x60], 0x12
call fcn.00402e30
lea eax, [esp + 0x48]
call fcn.00415080
lea eax, [esp + 0x4c]
mov byte [esp + 0x60], 6
call fcn.00415080
lea edx, [esp + 0x4c]
push esi
push edx
mov ebx, str._searchplugins_
call fcn.004017d0
mov eax, dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
push eax
call edi
test eax, eax
mov eax, dword [esp + 0x4c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4111d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41121a
lea ecx, [esp + 0x4c]
push esi
push ecx
mov ebx, str._searchplugins_
call fcn.004017d0
mov eax, dword [eax]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
lea eax, [esp + 0x4c]
sete bl
call fcn.00415080
test bl, bl
je 0x41121a
mov edx, dword [esp + 0x74]
mov dword [edx + 4], 1
jmp 0x411363
mov ebp, dword [esp + 0x68]
lea eax, [ebp - 0x10]
mov ebx, 1
call fcn.00401a70
add eax, 0x10
mov dword [esp + 0x20], eax
push eax
mov byte [esp + 0x64], 0x13
call edi
test eax, eax
je 0x4112b2
push 0x2e
push ebp
call fcn.0042ed32
add esp, 8
test eax, eax
jne 0x411252
or eax, 0xffffffff
jmp 0x411256
sub eax, ebp
sar eax, 1
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x68]
call fcn.00415650
mov byte [esp + 0x60], 0x14
mov esi, dword [esp + 0x4c]
push ebx
push esi
push 0x44eebc
lea edi, [esp + 0x2c]
call fcn.00405760
lea eax, [esi - 0x10]
add esp, 0xc
add ebx, 1
mov byte [esp + 0x60], 0x13
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4112a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41123e
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
push edx
push ebx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00412e50
mov esi, eax
test esi, esi
je 0x41134f
cmp dword [esp + 0x70], 0
je 0x411330
lea esi, [esp + 0x70]
call fcn.00401700
mov byte [esp + 0x60], 0x15
mov eax, dword [ebx]
push eax
push str.user_pref__browser.search.selectedEngine_____s____r_n
mov edi, esi
call fcn.00405760
add esp, 8
mov ecx, esi
push ecx
lea eax, [esp + 0x70]
call fcn.00411b80
mov edx, dword [ebx]
push edx
push str.user_pref__browser.search.defaultenginename_____s____r_n
mov esi, eax
call fcn.00405760
add esp, 8
mov eax, edi
push eax
lea eax, [esp + 0x70]
call fcn.00411b80
and esi, eax
mov eax, edi
mov byte [esp + 0x60], 0x13
call fcn.00415080
test esi, esi
je 0x41134f
mov edi, dword [esp + 0x74]
mov eax, ebx
add edi, 8
call fcn.00402e30
mov ecx, dword [esp + 0x74]
mov dword [ecx + 4], 0
jmp 0x41135a
mov edx, dword [esp + 0x74]
mov dword [edx + 4], 1
lea eax, [esp + 0x20]
call fcn.00415080
lea eax, [esp + 0x68]
call fcn.00415080
lea eax, [esp + 0x1c]
call fcn.00415080
lea eax, [esp + 0x18]
call fcn.00415080
lea eax, [esp + 0x6c]
call fcn.00415080
jmp 0x411426
mov eax, dword [esp + 0x74]
mov dword [eax + 4], 1
lea eax, [edi - 0x10]
mov byte [esp + 0x60], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4113b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x60], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4113d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 1
mov eax, dword [esp + 0x18]
or edx, 0xffffffff
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4113fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411426
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10