Function at 0x10043800
Capabilities:
Check if file exists
Get file attributes
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x1022c068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3c], edx
xor eax, eax
mov dword [ebp - 0x4c], ecx
push ebx
mov dword [ebp - 0x48], 0
xor esi, esi
mov dword [ebp - 0x50], 0
xor edi, edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100441d9
test al, 0x50
jne 0x100441d9
mov eax, dword [0x10234ea8]
test eax, eax
jne 0x1004387b
xor edx, edx
mov ecx, str.crypt32.dll
call fcn.10042170
mov dword [0x10234ea8], eax
test eax, eax
je 0x10043a09
cmp dword [0x102348d8], ebx
jne 0x100438a1
push str.CryptMsgClose
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x102348d8], eax
test eax, eax
je 0x10043a09
mov eax, dword [0x10234ea8]
cmp dword [0x102348dc], ebx
jne 0x100438c7
push str.CertCloseStore
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x102348dc], eax
test eax, eax
je 0x10043a09
mov eax, dword [0x10234ea8]
cmp dword [0x10234e74], ebx
jne 0x100438ed
push str.CertFreeCertificateContext
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10234e74], eax
test eax, eax
je 0x10043a09
mov eax, dword [0x10234ea8]
cmp dword [0x10234eac], ebx
jne 0x10043913
push str.CertFindCertificateInStore
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10234eac], eax
test eax, eax
je 0x10043a09
mov eax, dword [0x10234ea8]
cmp dword [0x10234a20], ebx
jne 0x10043939
push str.CryptMsgGetParam
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10234a20], eax
test eax, eax
je 0x10043a09
mov eax, dword [0x10234ea8]
cmp dword [0x10234a08], ebx
jne 0x1004395f
push str.CryptQueryObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10234a08], eax
test eax, eax
je 0x10043a09
mov eax, dword [0x10234ea8]
cmp dword [0x10234c54], ebx
jne 0x10043985
push str.CertGetNameStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10234c54], eax
test eax, eax
je 0x10043a09
mov eax, dword [0x10234ea8]
cmp dword [0x10234a10], ebx
jne 0x100439a7
push str.CryptDecodeObjectEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10234a10], eax
test eax, eax
je 0x10043a09
mov eax, dword [0x10234ea8]
cmp dword [0x10234c58], ebx
jne 0x100439c4
push str.CertGetIssuerCertificateFromStore
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10234c58], eax
test eax, eax
je 0x10043a09
cmp dword [0x10234a2c], ebx
jne 0x100439e1
xor edx, edx
mov ecx, str.cryptnet.dll
call fcn.10042170
mov dword [0x10234a2c], eax
test eax, eax
je 0x10043a09
cmp dword [0x10234e80], ebx
jne 0x10043a13
xor edx, edx
mov ecx, str.cryptbase.dll
call fcn.10042170
mov dword [0x10234e80], eax
test eax, eax
jne 0x10043a13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
je 0x10043a13
mov ebx, 0x7e
jmp 0x1004416e
push 0
mov edi, dword [0x10234a08]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
push 0
push 2
push 0x400
push dword [ebp - 0x4c]
push 1
call dword [0x101d3368]
call edi
mov edi, eax
test edi, edi
jne 0x10043a5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1004416e
mov edi, dword [0x10234a20]
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 6
push dword [ebp - 0x50]
mov ecx, edi
call dword [0x101d3368]
call edi
mov edi, eax
test edi, edi
jne 0x10043a8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1004416e
push dword [ebp - 0x58]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x10043aaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor edi, edi
jmp 0x1004416e
mov edi, dword [0x10234a20]
lea eax, [ebp - 0x58]
push eax
push esi
push 0
push 6
push dword [ebp - 0x50]
mov ecx, edi
call dword [0x101d3368]
call edi
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x10043adc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1004416e
mov eax, dword [esi + 4]
mov edi, dword [0x10234eac]
mov ecx, edi
mov dword [ebp - 0x100], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0xfc], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x114], eax
mov eax, dword [esi + 0x10]
push 0
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x118]
push eax
push 0xb0000
push 0
push 0x10001
push dword [ebp - 0x48]
call dword [0x101d3368]
call edi
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x10043b3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor edi, edi
jmp 0x1004416e
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x10043b61
mov ecx, eax
call fcn.100441e0
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x38], ebx
test ebx, ebx
jne 0x1004416b
lea edx, [ebp - 0x64]
mov ecx, esi
call fcn.10044600
test eax, eax
jne 0x10043b77
xorps xmm0, xmm0
movlpd qword [ebp - 0x64], xmm0
mov eax, dword [ebp - 0x48]
xor edi, edi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x44], edi
cmp dword [esi + 0x3c], edi
jbe 0x10043c9b
mov dword [ebp - 0x3c], edi
xor ebx, ebx
test ebx, ebx
jne 0x10043c92
mov eax, dword [esi + 0x40]
push str.1.2.840.113549.1.9.6
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x10043c7c
mov eax, dword [esi + 0x40]
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov eax, dword [edi + eax + 8]
mov edi, dword [0x10234a10]
mov ecx, edi
push ebx
push 0x8000
push dword [eax]
push dword [eax + 4]
push 0x1f4
push 0x10001
call dword [0x101d3368]
call edi
test eax, eax
je 0x10043c92
mov ecx, dword [ebp - 0x34]
mov edi, dword [0x10234eac]
push ebx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x170], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x16c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x184], eax
mov eax, dword [ecx + 0x10]
mov ecx, edi
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x188]
push eax
push 0xb0000
push ebx
push 0x10001
push dword [ebp - 0x40]
call dword [0x101d3368]
call edi
mov edi, eax
test edi, edi
je 0x10043c92
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0xc]
call fcn.10044600
test eax, eax
je 0x10043c68
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
setle bl
push edi
mov edi, dword [0x10234e74]
mov ecx, edi
call dword [0x101d3368]
call edi
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
add edi, 0xc
inc eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x44], eax
cmp eax, dword [esi + 0x3c]
jb 0x10043b96
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x10043e4e
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], edi
cmp dword [esi + 0x3c], edi
jbe 0x10043e23
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov eax, dword [esi + 0x40]
push str.1.3.6.1.4.1.311.3.3.1
push dword [ecx + eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10043ce9
mov ecx, dword [ebp - 0x38]
inc edi
add ecx, 0xc
mov dword [ebp - 0x38], ecx
cmp edi, dword [esi + 0x3c]
jb 0x10043cc0
jmp 0x10043e23
mov eax, dword [esi + 0x40]
lea ecx, [edi + edi*2]
mov edi, dword [0x10234a10]
mov eax, dword [eax + ecx*4 + 8]
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0x8000
push dword [eax]
mov ecx, edi
push dword [eax + 4]
push 0x21
push 0x10001
call dword [0x101d3368]
call edi
test eax, eax
je 0x10043e23
mov ecx, dword [ebp - 0x34]
push 0
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
call fcn.10044690
mov ecx, edx
mov dword [ebp - 0x38], eax
add esp, 4
mov dword [ebp - 0x40], ecx
test ecx, ecx
jne 0x10043d4d
test eax, eax
je 0x10043e23
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x14]
mov edi, 0x64
cdq
mov ecx, eax
mov eax, edx
mul edi
mov edi, eax
mov eax, ecx
mov ecx, 0x64
mul ecx
add edi, edx
mov ecx, eax
movzx eax, word [ebp - 0x12]
cdq
add ecx, eax
adc edi, edx
mov edx, 0x64
mov eax, edi
mul edx
mov edi, eax
mov eax, ecx
mov ecx, 0x64
mul ecx
add edi, edx
mov ecx, eax
movzx eax, word [ebp - 0xe]
cdq
add ecx, eax
adc edi, edx
mov edx, 0x64
mov eax, edi
mul edx
mov edi, eax
mov eax, ecx
mov ecx, 0x64
mul ecx
add edi, edx
mov ecx, eax
movzx eax, word [ebp - 0xc]
cdq
add ecx, eax
adc edi, edx
mov edx, 0x64
mov eax, edi
mul edx
mov edi, eax
mov eax, ecx
mov ecx, 0x64
mul ecx
add edi, edx
mov ecx, eax
movzx eax, word [ebp - 0xa]
cdq
add ecx, eax
adc edi, edx
mov edx, 0x64
mov eax, edi
mul edx
mov edi, eax
mov eax, ecx
mov ecx, 0x64
mul ecx
mov ecx, eax
add edi, edx
movzx eax, word [ebp - 8]
cdq
add ecx, eax
adc edi, edx
cmp edi, dword [ebp - 0x40]
ja 0x10043e1c
jb 0x10043e13
cmp ecx, dword [ebp - 0x38]
ja 0x10043e1c
mov dword [ebp - 0x44], 1
jmp 0x10043e23
mov dword [ebp - 0x44], 0
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x44], 0
jne 0x10043e4e
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x1004416e
mov ebx, 0x80096005
jmp 0x1004416e
mov ecx, 0x23f0
call fcn.10045e60
test eax, eax
jne 0x10043fe6
mov ecx, dword [ebp - 0x4c]
call fcn.100427b0
test eax, eax
je 0x10043fe6
mov eax, dword [0x10234e9c]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x30], xmm0
test eax, eax
jne 0x10043eac
xor edx, edx
mov ecx, 0x101f9670
call fcn.10042170
mov dword [0x10234e9c], eax
test eax, eax
je 0x10043fda
cmp dword [0x10234ea0], 0
jne 0x10043ed3
push str.OpenSCManagerW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10234ea0], eax
test eax, eax
je 0x10043fda
mov eax, dword [0x10234e9c]
cmp dword [0x10234e84], 0
jne 0x10043efa
push str.OpenServiceW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10234e84], eax
test eax, eax
je 0x10043fda
mov eax, dword [0x10234e9c]
cmp dword [0x10234a28], 0
jne 0x10043f21
push str.QueryServiceStatus
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10234a28], eax
test eax, eax
je 0x10043fda
mov eax, dword [0x10234e9c]
cmp dword [0x10234c5c], 0
jne 0x10043f43
push str.CloseServiceHandle
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10234c5c], eax
test eax, eax
je 0x10043fda
mov edi, dword [0x10234ea0]
mov ecx, edi
push 0x80000000
push 0
push 0
call dword [0x101d3368]
call edi
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x10043fd4
mov edi, dword [0x10234e84]
mov ecx, edi
push 4
push str.CryptSvc
push eax
call dword [0x101d3368]
call edi
mov dword [ebp - 0x40], eax
test eax, eax
je 0x10043fc1
mov edi, dword [0x10234a28]
lea ecx, [ebp - 0x30]
push ecx
push eax
mov ecx, edi
call dword [0x101d3368]
call edi
test eax, eax
je 0x10043fae
mov eax, dword [ebp - 0x2c]
mov ecx, 3
add eax, 0xfffffffc
cmp ecx, eax
sbb eax, eax
inc eax
mov dword [ebp - 0x38], eax
push dword [ebp - 0x40]
mov edi, dword [0x10234c5c]
mov ecx, edi
call dword [0x101d3368]
call edi
push dword [ebp - 0x3c]
mov edi, dword [0x10234c5c]
mov ecx, edi
call dword [0x101d3368]
call edi
cmp dword [ebp - 0x38], 0
jne 0x10043fe6
mov edi, 1
xor ebx, ebx
jmp 0x1004416e
mov eax, dword [0x10234e94]
test eax, eax
jne 0x10044004
xor edx, edx
mov ecx, str.wintrust.dll
call fcn.10042170
mov dword [0x10234e94], eax
test eax, eax
je 0x10044026
mov edi, dword [0x10234ea4]
test edi, edi
jne 0x10044030
push str.WinVerifyTrust
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [0x10234ea4], edi
test edi, edi
jne 0x10044030
xor edi, edi
lea ebx, [edi + 0x7e]
jmp 0x1004416e
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
nop dword [eax + eax]
mov eax, dword [ebp - 0x4c]
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
mov ecx, edi
lea eax, [ebp - 0x24]
movlpd qword [ebp - 0x7c], xmm0
or dword [ebp - 0x7c], 0x1000
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xaac56b
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x10], 0x11d0cd44
mov dword [ebp - 0xc], 0xc000c28c
mov dword [ebp - 8], 0xee95c24f
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x24], 0x10
movlpd qword [ebp - 0xa0], xmm0
movlpd qword [ebp - 0x84], xmm0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0xa4], 0x34
mov dword [ebp - 0x98], 2
mov dword [ebp - 0x94], 1
mov dword [ebp - 0x90], 1
mov dword [ebp - 0x88], 0
call dword [0x101d3368]
call edi
test eax, eax
je 0x10044108
mov ebx, eax
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 1
jae 0x10044103
mov edi, dword [0x10234ea4]
jmp 0x10044040
mov edi, dword [ebp - 0x34]
jmp 0x10044110
mov edi, 1
mov dword [ebp - 0x34], edi
cmp ebx, 0x800b010a
jne 0x1004416e
mov edi, dword [0x10234c58]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x54]
mov ecx, edi
push 0
push eax
push dword [ebp - 0x48]
mov dword [ebp - 0x40], 0
call dword [0x101d3368]
call edi
mov edi, eax
test edi, edi
je 0x1004416b
mov ecx, dword [edi + 0xc]
add ecx, 0x44
call fcn.100429e0
test eax, eax
je 0x1004415a
mov dword [ebp - 0x34], 1
xor ebx, ebx
push edi
mov edi, dword [0x10234e74]
mov ecx, edi
call dword [0x101d3368]
call edi
mov edi, dword [ebp - 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x1004418d
mov esi, dword [0x10234e74]
mov ecx, esi
push eax
call dword [0x101d3368]
call esi
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x100441a7
mov esi, dword [0x102348dc]
mov ecx, esi
push 0
push eax
call dword [0x101d3368]
call esi
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x100441bf
mov esi, dword [0x102348d8]
mov ecx, esi
push eax
call dword [0x101d3368]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10186332
mov esp, ebp
pop ebp
ret
mov ebx, 2
jmp 0x1004416e