Function at 0x10003990
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.1000e3d0
mov eax, dword [0x10033068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x824]
mov dword [ebp - 0x1048], ecx
push 0
push eax
call fcn.10010540
push 0x208
lea eax, [ebp - 0xc34]
push 0
push eax
call fcn.10010540
push 0x208
lea eax, [ebp - 0xa2c]
push 0
push eax
call fcn.10010540
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10010540
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10010540
push 0x208
lea eax, [ebp - 0x1044]
push 0
push eax
call fcn.10010540
add esp, 0x48
lea eax, [ebp - 0x824]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x824]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10003a41
mov eax, dword [0x10024374]
mov dword [edi], eax
lea edi, [ebp - 0x824]
add edi, 0xfffffffe
nop dword [eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10003a60
mov ecx, 7
mov esi, str.JiJianFormwork
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x824]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10003a83
mov dword [edi], eax
lea edi, [ebp - 0x824]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10003aa0
mov ecx, 7
mov esi, str.JiJianFormwork
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x824]
add ecx, 0xfffffffe
movsw word es:[edi], word [esi]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003ac3
mov eax, dword [0x10024378]
mov dword [ecx], eax
mov eax, dword [0x1002437c]
mov dword [ecx + 4], eax
mov ax, word [0x10024380]
mov word [ecx + 8], ax
lea eax, [ebp - 0x824]
push eax
push 0x104
lea eax, [ebp - 0xc34]
push eax
push 0x10024340
push str.InstallPath
push str.MuBanCfg
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xc34]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x10003b12
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003b33
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x10003c00
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x10003b52
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x10003c00
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.10010540
add esp, 0xc
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x414]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x61e], ax
test ax, ax
jne 0x10003b93
lea ecx, [ebp - 0x61c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003bb4
mov eax, dword [str.JJMuBan.exe]
mov dword [ecx], eax
mov eax, dword [0x1002447c]
mov dword [ecx + 4], eax
mov eax, dword [0x10024480]
mov dword [ecx + 8], eax
mov eax, dword [0x10024484]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10024488]
mov dword [ecx + 0x10], eax
mov eax, dword [0x1002448c]
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x61c]
push eax
call ebx
test eax, eax
jne 0x10003d96
push 0x206
lea eax, [ebp - 0xe3a]
push 0
push eax
call fcn.10010540
movups xmm0, xmmword [str.SOFTWARE_]
mov eax, dword [0x100244a0]
lea edi, [ebp - 0xe3c]
add esp, 0xc
mov dword [ebp - 0xe2c], eax
movups xmmword [ebp - 0xe3c], xmm0
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10003c40
mov ecx, 7
lea eax, [ebp - 0x104c]
mov esi, str.JiJianFormwork
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
push 0
lea eax, [ebp - 0xe3c]
movsw word es:[edi], word [esi]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10003dcb
lea eax, [ebp - 0x1050]
mov dword [ebp - 0x1050], 0x208
push eax
lea eax, [ebp - 0x1044]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0x104c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10003dcb
xor ecx, ecx
nop dword [eax]
movzx eax, word [ebp + ecx - 0x1044]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x10003cc0
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x10003ce0
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x10003dcb
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.10010540
add esp, 0xc
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x414]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x61e], ax
test ax, ax
jne 0x10003d21
lea ecx, [ebp - 0x61c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003d42
mov eax, dword [str.JJMuBan.exe]
mov dword [ecx], eax
mov eax, dword [0x1002447c]
mov dword [ecx + 4], eax
mov eax, dword [0x10024480]
mov dword [ecx + 8], eax
mov eax, dword [0x10024484]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10024488]
mov dword [ecx + 0x10], eax
mov eax, dword [0x1002448c]
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x61c]
push eax
call ebx
test eax, eax
je 0x10003dcb
push dword [ebp - 0x104c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x1048]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x3c]
call fcn.10001ec0
lea eax, [ebp - 0x414]
push eax
lea ecx, [esi + 0x6c]
call fcn.10001ec0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e3bf
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x104c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x26
lea eax, [ebp - 0xa2c]
push eax
push 0
call fcn.10007e70
lea edi, [ebp - 0xa2c]
add esp, 0x10
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10003df5
mov eax, dword [0x10024374]
mov dword [edi], eax
lea edi, [ebp - 0xa2c]
add edi, 0xfffffffe
mov dx, word [edi + 2]
add edi, 2
test dx, dx
jne 0x10003e11
mov ecx, 7
mov esi, str.JiJianFormwork
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0xa2c]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10003e34
mov dword [edi], eax
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xa2c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x10003e44
xor ecx, ecx
nop
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x10003e60
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x10003f70
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.10010540
add esp, 0xc
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x414]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x61e], ax
test ax, ax
jne 0x10003ea1
lea ecx, [ebp - 0x61c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003ec2
mov eax, dword [str.JJMuBan.exe]
mov dword [ecx], eax
mov eax, dword [0x1002447c]
mov dword [ecx + 4], eax
mov eax, dword [0x10024480]
mov dword [ecx + 8], eax
mov eax, dword [0x10024484]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10024488]
mov dword [ecx + 0x10], eax
mov eax, dword [0x1002448c]
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x61c]
push eax
call ebx
test eax, eax
je 0x10003f70
cmp word [ebp - 0x20c], 0
jne 0x10003f18
xor ecx, ecx
jmp 0x10003f30
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003f21
sub ecx, edx
sar ecx, 1
mov esi, dword [ebp - 0x1048]
lea eax, [ebp - 0x20c]
push ecx
push eax
lea ecx, [esi + 0x3c]
call fcn.10001760
cmp word [ebp - 0x414], 0
je 0x100040cf
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003f60
jmp 0x100040eb
lea ecx, [ebp - 0xc34]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003f80
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x10004050
lea eax, [ebp - 0xc34]
push eax
call ebx
test eax, eax
je 0x10004050
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0xc34]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x10003fb0
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x10003fd0
cmp word [ebp - 0x20c], ax
jne 0x10003ff5
xor ecx, ecx
jmp 0x1000400f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004000
sub ecx, edx
sar ecx, 1
mov esi, dword [ebp - 0x1048]
lea eax, [ebp - 0x20c]
push ecx
push eax
lea ecx, [esi + 0x3c]
call fcn.10001760
cmp word [ebp - 0x414], 0
je 0x100040cf
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004040
jmp 0x100040eb
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xa2c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x10004052
xor ecx, ecx
nop dword [eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x10004070
cmp word [ebp - 0x20c], ax
jne 0x10004095
xor ecx, ecx
jmp 0x100040af
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100040a0
sub ecx, edx
sar ecx, 1
mov esi, dword [ebp - 0x1048]
lea eax, [ebp - 0x20c]
push ecx
push eax
lea ecx, [esi + 0x3c]
call fcn.10001760
cmp word [ebp - 0x414], 0
jne 0x100040d3
xor ecx, ecx
jmp 0x100040ef
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100040e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [esi + 0x6c]
call fcn.10001760
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e3bf
mov esp, ebp
pop ebp
ret