Function at 0x10001f80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [0x10006040]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
mov edi, dword [0x10006484]
test edi, edi
jne 0x10001fac
mov ecx, str.ntdll.dll
call fcn.10001030
mov edi, eax
lea eax, [esp + 0xc]
mov dword [esp + 0x4c], 0x1a0018
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x54], str.wintrust.dll
push eax
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [0x1000652c]
test eax, eax
js 0x1000220d
push 0
push 0xc
lea eax, [esp + 0x24]
push eax
push 6
push dword [esp + 0x1c]
push 0xffffffffffffffff
call dword [0x100064fc]
mov eax, dword [esp + 0xc]
mov dword [0x10006490], eax
mov eax, dword [esp + 0x1c]
mov dword [0x10006498], eax
mov eax, dword [esp + 0x20]
mov dword [0x10006494], eax
call fcn.10001020
mov edx, str.LdrRegisterDllNotification
mov ecx, edi
call fcn.10001110
test eax, eax
je 0x1000220d
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push 0
push 0x10001f60
push 0
call eax
test eax, eax
js 0x1000220d
mov edx, str.NtOpenSection
mov ecx, edi
call fcn.10001110
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], 0x2a0028
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x28]
push ecx
push 0xc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x60], str.KnownDlls_ntdll.dll
push ecx
mov dword [esp + 0x34], 0x18
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0x40
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x20], 0
call eax
push 2
push 0
push 1
lea eax, [esp + 0x54]
mov dword [esp + 0x14], 0
push eax
push 0
push 0
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x64], 0
push eax
push 0xffffffffffffffff
push dword [esp + 0x38]
call dword [0x1000651c]
test eax, eax
js 0x100021f7
push 0
push 0xc
lea eax, [esp + 0x24]
push eax
push 6
push dword [esp + 0x18]
push 0xffffffffffffffff
call dword [0x100064fc]
test eax, eax
js 0x100021e1
mov eax, dword [0x10006488]
mov edx, dword [esp + 8]
push eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x48], 0
call fcn.10002230
push dword [esp + 0x44]
mov edx, edi
mov esi, eax
call fcn.10002230
add esp, 8
cmp esi, eax
je 0x1000217b
lea eax, [esp + 0x44]
push eax
push 4
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
call dword [0x10006504]
push dword [esp + 0x40]
push edi
push dword [esp + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x40]
push 0
push dword [esp + 0x48]
push eax
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
call dword [0x10006504]
push 0
push 0xc
lea eax, [esp + 0x24]
push eax
push 6
push dword [esp + 0x18]
push 0xffffffffffffffff
call dword [0x100064fc]
test eax, eax
js 0x100021f7
mov ecx, str.ntdll.dll
call fcn.10001030
test eax, eax
je 0x100021ce
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100021ce
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x100021ce
push 0
push 0xc
lea ecx, [esp + 0x24]
push ecx
push 6
push eax
push 0xffffffffffffffff
call dword [0x100064fc]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100022d3
mov esp, ebp
pop ebp
ret
mov eax, 3
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100022d3
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100022d3
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x5c]
mov eax, 2
pop edi
pop esi
xor ecx, esp
call fcn.100022d3
mov esp, ebp
pop ebp
ret