Function at 0x4021e0
Capabilities:
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a46b
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x160
mov eax, dword [0x4a3e54]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x128], 0
push 0x103
push 0
lea eax, [ebp - 0x127]
push eax
call fcn.0044bc50
add esp, 0xc
push 0x104
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.UnicomCertInsActx.ocx
lea eax, [ebp - 0x128]
push eax
call fcn.0044bce0
add esp, 8
push str.install_cert_start
call dword [0x492fcc]
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
call fcn.00403e30
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
je 0x4022c9
push 0x480368
mov ecx, dword [ebp - 0x18]
add ecx, 0x74
call fcn.004050e0
push 0x40
push 0x48035c
mov ecx, dword [ebp - 0x18]
add ecx, 0x74
call fcn.00405150
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040ea5b
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x7c], 1
jmp 0x40227b
push str.http:__114.251.39.184
mov ecx, dword [ebp - 0x18]
call fcn.004036c0
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x40230a
push 0x480330
mov ecx, dword [ebp - 0x18]
add ecx, 0x74
call fcn.004050e0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.0040f7cc
jmp 0x4025b1
push str.http:__.10010.com
mov ecx, dword [ebp - 0x18]
call fcn.004036c0
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x40234b
push 0x480304
mov ecx, dword [ebp - 0x18]
add ecx, 0x74
call fcn.004050e0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.0040f7cc
jmp 0x4025b1
push str.https:__.10010.com
mov ecx, dword [ebp - 0x18]
call fcn.004036c0
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x40238c
push 0x4802d8
mov ecx, dword [ebp - 0x18]
add ecx, 0x74
call fcn.004050e0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.0040f7cc
jmp 0x4025b1
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x128]
push eax
push 0x81
push 0x4802d4
mov ecx, dword [ebp - 0x18]
call fcn.00402650
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
jne 0x4023e3
push 0x480368
mov ecx, dword [ebp - 0x18]
add ecx, 0x74
call fcn.004050e0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.0040f7cc
jmp 0x4025b1
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00402110
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jl 0x4025b1
lea eax, [ebp - 0x20]
push eax
push 0x47fd78
push 1
push 0
push 0x47fd98
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x40246f
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00402110
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jl 0x4025b1
lea eax, [ebp - 0x20]
push eax
push 0x47fd78
push 1
push 0
push 0x47fd98
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x402563
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [eax + 0x20]
call ecx
mov dword [ebp - 0x170], eax
mov edx, dword [ebp - 0x170]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
jl 0x4024bb
cmp dword [ebp - 0x24], 0xe
jne 0x4024bb
push 0x4802c0
mov ecx, dword [ebp - 0x18]
add ecx, 0x74
call fcn.004050e0
jmp 0x402553
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jl 0x40250b
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x7c], 0
je 0x4024f9
push 0x480294
mov ecx, dword [ebp - 0x18]
add ecx, 0x74
call fcn.004050e0
jmp 0x402509
push 0x480280
mov ecx, dword [ebp - 0x18]
add ecx, 0x74
call fcn.004050e0
jmp 0x402553
lea ecx, [ebp - 0x12c]
call fcn.00404fd0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
push eax
push 0x480264
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00405cb0
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x74
call fcn.004050b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.004019f0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
jmp 0x402573
push 0x480220
mov ecx, dword [ebp - 0x18]
add ecx, 0x74
call fcn.004050e0
jmp 0x402592
mov dword [ebp - 4], 0xffffffff
push 0
mov ecx, dword [ebp - 0x18]
call fcn.0040f7cc
push str.install_cert_end
call dword [0x492fcc]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044b637
mov esp, ebp
pop ebp
ret