Function at 0x418d80
Capabilities:
Check if file exists
Enumerate files on windows
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x462b45
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x47dac0]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47dac0]
xor eax, esp
push eax
lea eax, [esp + 0x2c4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2d4]
mov dword [esp + 0x68], eax
call fcn.004268df
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x418de2
push 0x80004005
call fcn.00401820
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov dword [esp + 0x2cc], ebx
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x418e1f
push 0x104
lea ecx, [esp + 0x28]
call fcn.004018a0
mov esi, dword [esp + 0x24]
push 0x104
push esi
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp esi, ebx
jne 0x418e38
xor eax, eax
jmp 0x418e55
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418e40
sub eax, edx
sar eax, 1
js 0x4194f3
cmp eax, dword [esi - 8]
jg 0x4194f3
push str.Baidu_browserUserData.
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x38]
mov dword [esi - 0xc], eax
push edx
mov word [esi + eax*2], bx
call fcn.00403590
add esp, 0xc
lea eax, [esp + 0x6c]
mov byte [esp + 0x2cc], 1
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0x38], edi
cmp edi, 0xffffffff
je 0x4196f1
test byte [esp + 0x6c], 0x10
je 0x419420
cmp word [esp + 0x98], 0x2e
je 0x419420
push str.Baidu_browserUserData_
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x6c]
push eax
call fcn.00403590
lea ecx, [esp + 0xa4]
push ecx
push eax
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0x2e4], 2
call fcn.00403590
push str.userpref_v2
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x2f0], 3
call fcn.00403590
add esp, 0x24
mov byte [esp + 0x2cc], 5
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418f2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2cc], 6
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418f57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418f87
mov byte [esp + 0x2cc], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x419414
mov dword [esp + 0x14], ebx
lea edi, [esp + 0x14]
mov byte [esp + 0x2cc], 7
call fcn.00419ff0
cmp eax, ebx
jl 0x41943b
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x418fba
push 0x80004003
call fcn.00460050
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xfc]
push ebx
push eax
mov esi, eax
call edx
cmp eax, ebx
jge 0x418fd8
push 0x46fc6c
push esi
push eax
call fcn.00460060
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
cmp eax, ebx
je 0x419534
push eax
mov word [esp + 0x40], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esp + 0x44], eax
jne 0x41900f
push 0x8007000e
call fcn.00460050
mov byte [esp + 0x2cc], 8
cmp dword [esp + 0x14], ebx
jne 0x419027
push 0x80004003
call fcn.00460050
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
call fcn.004186d0
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x2d0], 7
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ecx
mov edi, str.ItemTable_Item__key_homePage__
call fcn.004182f0
mov byte [esp + 0x2d0], 9
cmp dword [esp + 0x18], ebx
jne 0x419071
push 0x80004003
call fcn.00460050
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x2d4], 7
call fcn.00418420
mov byte [esp + 0x2cc], 0xa
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4193e0
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ecx
mov edi, str.value
call fcn.004182f0
mov edi, dword [esp + 0x38]
lea edx, [esp + 0x5c]
push edx
call fcn.004184f0
mov eax, dword [eax]
mov esi, dword [esp + 0x18]
cmp esi, eax
je 0x4190ee
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x4190e2
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
cmp esi, ebx
je 0x4190ee
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x4190fe
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
cmp dword [esp + 0x18], ebx
je 0x4193e0
lea ecx, [esp + 0x2c]
call fcn.004019e0
lea ecx, [esp + 0x50]
push 0x46f73c
push ecx
mov ecx, dword [esp + 0x70]
mov byte [esp + 0x2d4], 0xb
call fcn.00402120
push 0x46f734
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x2e0], 0xc
call fcn.00403590
add esp, 0x14
mov byte [esp + 0x2cc], 0xe
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41916f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x46f744
push 0x46f74c
lea ecx, [esp + 0x28]
push ecx
call fcn.00417ee0
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
add eax, eax
push eax
lea ecx, [esp + 0x30]
push 0x46f750
push ecx
call fcn.00406fd0
mov edx, dword [esp + 0x2c]
add esp, 0xc
xor edi, edi
cmp dword [edx - 0xc], ebx
jle 0x419251
mov edi, edi
call fcn.004268df
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x418dd8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
cmp edi, ebx
mov byte [esp + 0x2cc], 0xf
jl 0x4194f3
mov eax, dword [esp + 0x20]
cmp edi, dword [eax - 0xc]
jg 0x4194f3
movzx eax, word [eax + edi*2]
movzx ecx, ax
push ecx
lea edx, [esp + 0x2c]
push str._02x00
push edx
call fcn.00406fd0
mov esi, dword [esp + 0x34]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
lea ecx, [esp + 0x34]
call fcn.0040b6c0
lea eax, [esi - 0x10]
mov byte [esp + 0x2cc], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419241
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
add edi, 1
cmp edi, dword [ecx - 0xc]
jl 0x4191b0
cmp dword [esp + 0x18], ebx
jne 0x419261
push 0x80004003
call fcn.00460050
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp - 0xc]
mov esi, dword [esp + 0x18]
push eax
push ebp
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
cmp eax, ebx
je 0x419534
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x6c]
push esi
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ecx
mov edi, str.ItemTable_Item__key_startMethod__
call fcn.004182f0
mov byte [esp + 0x2d0], 0x10
cmp dword [esp + 0x18], ebx
jne 0x4192af
push 0x80004003
call fcn.00460050
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x2d4], 0xe
call fcn.00418420
mov ecx, dword [eax]
mov eax, dword [esp + 0x18]
cmp eax, ecx
je 0x4192f7
cmp ecx, ebx
mov esi, eax
mov eax, ecx
mov dword [esp + 0x18], eax
je 0x4192e7
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 4]
call ecx
mov eax, dword [esp + 0x18]
cmp esi, ebx
je 0x4192f7
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x54]
cmp ecx, ebx
je 0x41930b
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41937c
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ecx
mov edi, str.value
call fcn.004182f0
mov edi, dword [esp + 0x38]
lea edx, [esp + 0x60]
push edx
call fcn.004184f0
mov eax, dword [eax]
mov esi, dword [esp + 0x18]
cmp esi, eax
je 0x419362
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x419356
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
cmp esi, ebx
je 0x419362
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x419372
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
cmp dword [esp + 0x18], ebx
jne 0x4194fd
mov byte [esp + 0x2cc], 0xb
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4193a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2cc], 0xa
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4193c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2cc], 7
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4193e0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x2cc], 6
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4193f8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x2cc], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419420
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x6c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [esp + 0x24]
test eax, eax
jmp 0x418e9d
mov byte [esp + 0x2cc], 6
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x419453
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [esp + 0x2cc], 1
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 0x41947b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2cc], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4194a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2cc], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4194c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.00448969
add esp, 0x2bc
ret 4
push 0x80070057
call fcn.00401820
push str.0200000016000000730074006100720074004d006500740068006f006400020000003200
lea ecx, [esp + 0x30]
call fcn.00401e30
cmp dword [esp + 0x18], ebx
jne 0x41951b
push 0x80004003
call fcn.00460050
mov edi, dword [esp + 0x2c]
mov eax, dword [edi - 0xc]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, dword [esp + 0x18]
push eax
push edi
call ebp
cmp eax, ebx
jne 0x419539
call fcn.00401970
mov ecx, dword [esi]
mov edx, dword [ecx + 0x6c]
push eax
push esi
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call ebp
cmp eax, ebx
jne 0x419556
call fcn.00401970
push eax
mov word [esp + 0x40], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esp + 0x44], eax
jne 0x419576
push 0x8007000e
call fcn.00460050
mov byte [esp + 0x2cc], 0x11
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
jne 0x419594
push 0x80004003
call fcn.00460050
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x3c]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x50]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x54]
mov dword [eax + 8], ebp
mov ebp, dword [esp + 0x58]
mov dword [eax + 0xc], ebp
mov eax, dword [edx + 0x108]
push ecx
mov esi, ecx
call eax
cmp eax, ebx
jge 0x4195d1
push 0x46fc6c
push esi
push eax
call fcn.00460060
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x2d0], 0xe
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x4195f8
push 0x80004003
call fcn.00460050
jmp 0x419604
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x2cc], 0xb
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419637
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x2cc], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41965b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2cc], 7
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x419673
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x2cc], 6
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41968b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x2cc], 1
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 0x4196b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2cc], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4196da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2cc], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
jmp 0x4194b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41947b