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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d602
mov eax, dword fs:[0]
push eax
mov eax, 0x10460
call fcn.00510b10
mov eax, dword [0x588fc8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x100
lea eax, [ebp - 0x110]
push eax
push str.APPDATA
mov dword [ebp - 0x103ac], ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call fcn.00420ad8
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40f71b
push 0x80004005
call fcn.00401410
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x103a4], eax
lea eax, [ebp - 0x110]
mov dword [ebp - 4], edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f740
sub eax, edx
push eax
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x103a4]
call fcn.00402fc0
push 0x19
push str.Baidu_browserconfig.ini
lea ecx, [ebp - 0x103a4]
call fcn.00402fc0
mov esi, dword [ebp - 0x103a4]
cmp dword [esi - 4], 1
jle 0x40f78f
mov edx, dword [esi - 0xc]
push edx
lea ecx, [ebp - 0x103a4]
call fcn.00401f00
mov esi, dword [ebp - 0x103a4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40fb1a
call fcn.00420ad8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40f7b8
push 0x80004005
call fcn.00401410
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x103a8], eax
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f7d7
sub eax, edx
push eax
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x103a8]
call fcn.00402fc0
push 0x17
push str.Baidu_browserUserData
lea ecx, [ebp - 0x103a8]
call fcn.00402fc0
mov ebx, dword [ebp - 0x103a8]
cmp dword [ebx - 4], 1
jle 0x40f826
mov edx, dword [ebx - 0xc]
push edx
lea ecx, [ebp - 0x103a8]
call fcn.00401f00
mov ebx, dword [ebp - 0x103a8]
push ebx
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0050f091
push str..
lea ecx, [ebp - 0x214]
push 0x104
push ecx
call fcn.005118aa
add esp, 0x18
lea edx, [ebp - 0x354]
push edx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x103a0], eax
cmp eax, 0xffffffff
jne 0x40f899
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40fb1a
test byte [ebp - 0x354], 0x10
je 0x40fad8
cmp byte [ebp - 0x328], 0x2e
je 0x40fad8
call fcn.00420ad8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40f711
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1039c], eax
cmp dword [ebx - 4], 1
mov byte [ebp - 4], 2
jle 0x40f8f8
mov ecx, dword [ebx - 0xc]
push ecx
lea ecx, [ebp - 0x103a8]
call fcn.00401f00
mov ebx, dword [ebp - 0x103a8]
cmp ebx, edi
jne 0x40f900
xor eax, eax
jmp 0x40f90e
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f905
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x1039c]
call fcn.00402fc0
push 1
push 0x53cdd0
lea ecx, [ebp - 0x1039c]
call fcn.00402fc0
lea eax, [ebp - 0x328]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f936
sub eax, edx
push eax
lea edx, [ebp - 0x328]
push edx
lea ecx, [ebp - 0x1039c]
call fcn.00402fc0
push 0xc
push str.userpref_v2
lea ecx, [ebp - 0x1039c]
call fcn.00402fc0
mov esi, dword [ebp - 0x1039c]
cmp dword [esi - 4], 1
jle 0x40f985
mov eax, dword [esi - 0xc]
push eax
lea ecx, [ebp - 0x1039c]
call fcn.00401f00
mov esi, dword [ebp - 0x1039c]
push esi
call fcn.004019d0
add esp, 4
test al, al
jne 0x40f9d7
mov edx, dword [ebp - 0x103a0]
lea ecx, [ebp - 0x354]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
or edx, 0xffffffff
test eax, eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
je 0x40fb57
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f899
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f899
cmp dword [esi - 4], 1
jle 0x40f9f2
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x1039c]
call fcn.00401f00
mov esi, dword [ebp - 0x1039c]
push esi
lea ecx, [ebp - 0x103bc]
call fcn.0040f4b0
lea edx, [ebp - 0x1035c]
mov eax, edx
neg eax
and eax, 3
lea eax, [ebp + eax - 0x1035c]
lea ecx, [ebp - 0x35c]
mov dword [ebp - 0x10398], edi
mov dword [ebp - 0x10394], edi
mov dword [ebp - 0x10388], edi
mov dword [ebp - 0x10384], edi
mov dword [ebp - 0x10380], edi
mov dword [ebp - 0x10378], edi
mov dword [ebp - 0x35c], edi
mov dword [ebp - 0x358], edi
mov dword [ebp - 0x10368], edx
mov dword [ebp - 0x10364], eax
mov dword [ebp - 0x10360], ecx
mov edx, dword [ebp - 0x103bc]
push edx
lea ecx, [ebp - 0x10398]
mov byte [ebp - 4], 4
call fcn.0040d610
mov eax, dword [ebp - 0x10380]
mov dword [ebp - 0x103c0], eax
cmp eax, edi
jne 0x40fb6c
lea ecx, [ebp - 0x10368]
mov byte [ebp - 4], 3
call fcn.004096f0
mov eax, dword [ebp - 0x103bc]
cmp eax, edi
je 0x40faa6
push eax
call fcn.00410636
add esp, 4
lea eax, [esi - 0x10]
mov dword [ebp - 0x103bc], edi
mov dword [ebp - 0x103b8], edi
mov dword [ebp - 0x103b4], edi
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fad8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x103a0]
lea ecx, [ebp - 0x354]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f899
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x103a4]
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050e65d
mov esp, ebp
pop ebp
ret
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40faf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40faf4
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x103a0], esi
cmp esi, edi
je 0x40fdad
push 1
push edi
push 0x53e5f0
mov ecx, esi
call fcn.00409370
mov eax, dword [eax + 4]
cmp eax, edi
jne 0x40fb98
mov eax, 0x58a798
push str.homePage
push eax
call fcn.00511a10
add esp, 8
push 1
mov ecx, esi
push edi
test eax, eax
jne 0x40fc97
push str.value
call fcn.00409370
cmp eax, edi
je 0x40fbc9
push eax
mov ecx, esi
call fcn.00408c20
mov eax, str.value
mov edi, edi
inc eax
cmp byte [eax], 0
jne 0x40fbd0
sub eax, str.value
lea esi, [eax + 1]
push esi
lea ecx, [ebp - 0x10368]
call fcn.00408d60
mov ebx, eax
cmp esi, edi
jbe 0x40fc00
mov ecx, str.value
sub ecx, ebx
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x40fbf7
mov esi, dword [ebp - 0x103ac]
mov eax, dword [esi + 0xc]
cmp dword [eax - 4], 1
jle 0x40fc1b
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.00401f00
mov edi, dword [esi + 0xc]
cmp byte [edi], 0
mov eax, edi
je 0x40fc2b
inc eax
cmp byte [eax], 0
jne 0x40fc25
sub eax, edi
lea esi, [eax + 1]
push esi
lea ecx, [ebp - 0x10368]
call fcn.00408d60
test esi, esi
je 0x40fc4d
mov ecx, eax
sub edi, eax
mov dl, byte [edi + ecx]
mov byte [ecx], dl
inc ecx
dec esi
jne 0x40fc44
xor esi, esi
push esi
push esi
push eax
push ebx
lea ecx, [ebp - 0x10368]
call fcn.00409500
mov ecx, dword [ebp - 0x103a0]
cmp dword [ecx + 0x20], esi
je 0x40fc83
mov edx, dword [ecx + 0x24]
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 0x24]
mov dword [edx + 0x18], eax
mov dword [ecx + 0x24], eax
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], esi
jmp 0x40fd86
mov dword [eax + 0x14], esi
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], esi
jmp 0x40fd86
push 0x53e5f0
call fcn.00409370
mov eax, dword [eax + 4]
cmp eax, edi
jne 0x40fcad
mov eax, 0x58a798
push str.startMethod
push eax
call fcn.00511a10
add esp, 8
test eax, eax
jne 0x40fd8e
push 1
push edi
push str.value
mov ecx, esi
call fcn.00409370
cmp eax, edi
je 0x40fcde
push eax
mov ecx, esi
call fcn.00408c20
mov eax, str.value
inc eax
cmp byte [eax], 0
jne 0x40fce3
sub eax, str.value
lea esi, [eax + 1]
push esi
lea ecx, [ebp - 0x10368]
call fcn.00408d60
mov ebx, eax
cmp esi, edi
jbe 0x40fd19
mov ecx, str.value
sub ecx, ebx
lea ebx, [ebx]
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x40fd10
mov esi, dword [ebp - 0x103ac]
mov eax, dword [esi + 8]
cmp dword [eax - 4], 1
jle 0x40fd34
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esi + 8]
call fcn.00401f00
mov edi, dword [esi + 8]
cmp byte [edi], 0
mov eax, edi
je 0x40fd46
mov edi, edi
inc eax
cmp byte [eax], 0
jne 0x40fd40
sub eax, edi
lea esi, [eax + 1]
push esi
lea ecx, [ebp - 0x10368]
call fcn.00408d60
test esi, esi
je 0x40fd69
mov ecx, eax
sub edi, eax
nop
mov dl, byte [edi + ecx]
mov byte [ecx], dl
inc ecx
dec esi
jne 0x40fd60
push 0
push 0
push eax
push ebx
lea ecx, [ebp - 0x10368]
call fcn.00409500
mov ecx, dword [ebp - 0x103a0]
push eax
call fcn.004093f0
mov esi, dword [ebp - 0x103a0]
xor edi, edi
push 1
push edi
push str.Item
mov ecx, esi
call fcn.004092f0
mov esi, eax
mov dword [ebp - 0x103a0], eax
cmp esi, edi
jne 0x40fb7d
mov eax, str.xml_version_1.0__encoding_utf_8_
inc eax
cmp byte [eax], 0
jne 0x40fdb2
sub eax, str.xml_version_1.0__encoding_utf_8_
lea esi, [eax + 1]
push esi
lea ecx, [ebp - 0x10368]
call fcn.00408d60
mov edi, eax
test esi, esi
je 0x40fde9
mov edx, str.xml_version_1.0__encoding_utf_8_
mov ecx, edi
sub edx, edi
jmp 0x40fde0
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
dec esi
jne 0x40fde0
push 0
push 0
push 0
push edi
push 7
lea ecx, [ebp - 0x10368]
call fcn.00409430
mov ecx, dword [ebp - 0x103c0]
push eax
push ecx
lea ecx, [ebp - 0x10398]
call fcn.0040b300
mov esi, dword [ebp - 0x1039c]
cmp dword [esi - 4], 1
jle 0x40fe31
mov edx, dword [esi - 0xc]
push edx
lea ecx, [ebp - 0x1039c]
call fcn.00401f00
mov esi, dword [ebp - 0x1039c]
push 1
push 0x40
push 2
push esi
lea ecx, [ebp - 0x1046c]
call fcn.0040ed70
xor eax, eax
push eax
push eax
lea edx, [ebp - 0x10398]
push edx
lea ecx, [ebp - 0x1046c]
push ecx
push eax
lea eax, [ebp - 0x103c4]
push eax
mov byte [ebp - 4], 5
call fcn.0040eff0
add esp, 0x18
lea ecx, [ebp - 0x1046c]
call fcn.0040e0b0
lea ecx, [ebp - 0x1040c]
mov byte [ebp - 4], 4
call fcn.0040eee0
lea ecx, [ebp - 0x1040c]
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0052c136
add esp, 4
lea ecx, [ebp - 0x10368]
mov byte [ebp - 4], 3
call fcn.004096f0
lea ecx, [ebp - 0x103bc]
call fcn.0040c040
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fed6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x103a8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fefc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x103a4]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x40fb3b