Function at 0x4025d0
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4177ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ebx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
call fcn.00401240
test eax, eax
je 0x40263d
lea ecx, [ebp - 0x14]
call fcn.004024e0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004125d4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x10c]
lea esi, [ebx + 0x10c]
cmp eax, edi
je 0x40266d
cmp eax, edi
jne 0x40265b
push 0x80004003
call fcn.004119bb
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
mov ecx, esi
mov dword [esi], edi
call fcn.00403a60
mov eax, dword [ebx + 0x108]
lea edi, [ebx + 0x108]
test eax, eax
je 0x402701
test eax, eax
jne 0x40268f
push 0x80004003
call fcn.004119bb
mov esi, dword [edi]
lea eax, [ebp - 0x20]
push eax
push esi
mov edx, dword [esi]
call dword [edx + 0x88]
test eax, eax
jge 0x4026ae
push 0x41d2b8
push esi
push eax
call fcn.004119c9
cmp dword [ebp - 0x20], 1
jne 0x4026db
cmp dword [edi], 0
jne 0x4026c3
push 0x80004003
call fcn.004119bb
mov esi, dword [edi]
push esi
mov ecx, dword [esi]
call dword [ecx + 0x3c]
test eax, eax
jge 0x4026db
push 0x41d2b8
push esi
push eax
call fcn.004119c9
cmp dword [edi], 0
jne 0x4026ea
push 0x80004003
call fcn.004119bb
mov eax, dword [edi]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov ecx, edi
mov dword [edi], 0
call fcn.00403a60
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00403a50
lea eax, [ebp - 0x24]
push eax
push 0x41d160
push 0x17
push 0
push 0x41d2a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x402757
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ole32.dll_OleRun]
mov esi, eax
test esi, esi
jl 0x40274a
mov eax, dword [ebp - 0x24]
push edi
push 0x41d298
push eax
mov edx, dword [eax]
call dword [edx]
mov esi, eax
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
jge 0x40279e
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebx + 0x104], 0
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
mov esi, dword [edx + 0x104]
call fcn.004024e0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004125d4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi], 0
jne 0x4027ad
push 0x80004003
call fcn.004119bb
mov eax, dword [edi]
push 5
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
lea eax, [ebx + 4]
mov ecx, ebx
push eax
call fcn.00403770
mov ecx, ebx
call fcn.00403920
cmp eax, 1
jne 0x402a35
push 0xc
call fcn.00412315
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov byte [ebp - 4], 3
je 0x4027f5
push str.ProviderSQLOLEDB_Server
call fcn.00402530
jmp 0x4027f7
xor eax, eax
test eax, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], eax
jne 0x40280c
push 0x8007000e
call fcn.004119bb
lea ecx, [ebp - 0x24]
call fcn.00402f60
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x24]
call fcn.004024e0
add ebx, 0x118
lea ecx, [ebp - 0x20]
push ebx
call fcn.004125fe
mov esi, dword [eax]
mov bl, 4
push 0xc
mov byte [ebp - 4], bl
call fcn.00412315
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov byte [ebp - 4], 5
je 0x40285f
push esi
call fcn.00402530
jmp 0x402861
xor eax, eax
test eax, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x18], eax
jne 0x402875
push 0x8007000e
call fcn.004119bb
push 0xc
mov byte [ebp - 4], 6
call fcn.00412315
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov byte [ebp - 4], 7
je 0x4028a1
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x14]
push edx
push eax
call fcn.00402f80
mov esi, eax
jmp 0x4028a3
xor esi, esi
lea ecx, [ebp - 0x14]
call fcn.004024e0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], esi
call fcn.004024e0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004125d4
push 0xc
call fcn.00412315
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov byte [ebp - 4], 8
je 0x4028e5
push str._Database
call fcn.00402530
jmp 0x4028e7
xor eax, eax
test eax, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], eax
jne 0x4028fc
push 0x8007000e
call fcn.004119bb
push 0xc
mov byte [ebp - 4], 9
call fcn.00412315
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov byte [ebp - 4], 0xa
je 0x402928
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x14]
push edx
push eax
call fcn.00402f80
mov esi, eax
jmp 0x40292a
xor esi, esi
lea ecx, [ebp - 0x14]
call fcn.004024e0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
call fcn.004024e0
mov ecx, dword [ebp - 0x28]
add ecx, 0x128
push ecx
lea ecx, [ebp - 0x20]
call fcn.004125fe
mov esi, dword [eax]
mov bl, 0xb
push 0xc
mov byte [ebp - 4], bl
call fcn.00412315
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov byte [ebp - 4], 0xc
je 0x402979
push esi
call fcn.00402530
jmp 0x40297b
xor eax, eax
test eax, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x18], eax
jne 0x40298f
push 0x8007000e
call fcn.004119bb
push 0xc
mov byte [ebp - 4], 0xd
call fcn.00412315
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov byte [ebp - 4], 0xe
je 0x4029bb
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x14]
push edx
push eax
call fcn.00402f80
mov esi, eax
jmp 0x4029bd
xor esi, esi
lea ecx, [ebp - 0x14]
call fcn.004024e0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], esi
call fcn.004024e0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004125d4
mov esi, dword [ebp - 0x28]
push 0
push ecx
lea edx, [esi + 0x168]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edx
call fcn.00402ec0
push ecx
add esi, 0x148
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
mov byte [ebp - 4], 0xf
call fcn.00402ec0
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00402ea0
mov ecx, edi
mov byte [ebp - 4], 0x11
call fcn.00403a30
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00403060
mov esi, eax
jmp 0x402d0b
cmp eax, 3
jne 0x402d0e
push 0x421010
lea ecx, [ebp - 0x24]
call fcn.004125fe
mov ecx, dword [ebp + 8]
mov bl, 0x12
push str.local
push ecx
mov byte [ebp - 4], bl
call fcn.004077b5
add esp, 8
test eax, eax
jne 0x402b4e
mov eax, dword [0x41d258]
mov ecx, dword [0x41d25c]
mov edx, dword [str.SoftwareCsss]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], ecx
push eax
push 0x20019
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], edx
mov dx, word [0x41d260]
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], 0x104
mov word [ebp - 0x2c], dx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402afb
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x140]
push edx
push eax
push 0
push 0
push str.AppPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402af1
lea edx, [ebp - 0x140]
lea ecx, [ebp - 0x24]
push edx
call fcn.004126cd
push str.Main_Jiami_Pass.mdb
lea ecx, [ebp - 0x24]
call fcn.00412920
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x24]
push 0x421010
push ecx
call fcn.004077b5
add esp, 8
test eax, eax
jne 0x402b5a
push eax
lea edx, [ebp - 0x140]
push 0x26
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x20]
push eax
call fcn.004125fe
push str.NJUAuditMain_Jiami_Pass.mdb
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x13
call fcn.00412920
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004125d4
jmp 0x402b5a
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0041267d
push 0xc
call fcn.00412315
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov byte [ebp - 4], 0x14
je 0x402b7d
push str.ProviderMicrosoft.Jet.OLEDB.4.0_Data_Source
call fcn.00402530
jmp 0x402b7f
xor eax, eax
test eax, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x18], eax
jne 0x402b9a
push 0x8007000e
call fcn.004119bb
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402ba4
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], edx
call fcn.004024e0
mov esi, dword [ebp - 0x24]
push 0xc
call fcn.00412315
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov byte [ebp - 4], 0x15
je 0x402bdc
push esi
call fcn.00402530
jmp 0x402bde
xor eax, eax
test eax, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x20], eax
jne 0x402bf2
push 0x8007000e
call fcn.004119bb
push 0xc
mov byte [ebp - 4], 0x16
call fcn.00412315
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov byte [ebp - 4], 0x17
je 0x402c1e
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x14]
push eax
push edx
call fcn.00402f80
mov esi, eax
jmp 0x402c20
xor esi, esi
lea ecx, [ebp - 0x14]
call fcn.004024e0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], bl
call fcn.004024e0
push 0xc
call fcn.00412315
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov byte [ebp - 4], 0x18
je 0x402c59
push str._Persist_Security_InfoFalse_Jet_OLEDB:Database_password76ice19761001
call fcn.00402530
jmp 0x402c5b
xor eax, eax
test eax, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x20], eax
jne 0x402c6f
push 0x8007000e
call fcn.004119bb
push 0xc
mov byte [ebp - 4], 0x19
call fcn.00412315
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov byte [ebp - 4], 0x1a
je 0x402c9b
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x14]
push eax
push edx
call fcn.00402f80
mov esi, eax
jmp 0x402c9d
xor esi, esi
lea ecx, [ebp - 0x14]
call fcn.004024e0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], bl
call fcn.004024e0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x421010
call fcn.00402ec0
push ecx
mov byte [ebp - 4], 0x1b
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x421010
call fcn.00402ec0
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00402ea0
mov ecx, edi
mov byte [ebp - 4], 0x1d
call fcn.00403a30
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.00403060
lea ecx, [ebp - 0x24]
mov esi, eax
mov byte [ebp - 4], 2
call fcn.004125d4
mov ebx, dword [ebp - 0x28]
test esi, esi
jl 0x40275f
mov dword [ebx + 0x104], 1
jmp 0x402769