Function at 0x41f060
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
add esi, 0x400000
push edi
mov edi, dword [eax + 0xc]
add edx, 0x400000
mov eax, dword [eax + 0x10]
add edi, 0x400000
add eax, 0x400000
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x210], eax
xor ecx, ecx
mov byte [ebp - 0x219], 0
xor eax, eax
mov dword [ebp - 0x22c], edx
lock cmpxchg dword [edx], ecx
mov ebx, eax
test ebx, ebx
jne 0x41f16f
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00580ff0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f0f0
lea eax, [ebp - 0x20c]
sub ecx, edx
push eax
push ecx
push esi
call sym.SystemInformer.exe_PhZeroExtendToUtf16Buffer
push 0x800
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x41f168
push 0x200
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x41f168
cmp dword [0x62dbb0], 0x3e
jae 0x41f39b
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x41f39b
mov byte [ebp - 0x219], 1
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x210]
sub eax, edi
mov ecx, dword [eax + ecx]
test ecx, ecx
jns 0x41f190
push ecx
xor edx, edx
mov ecx, ebx
call fcn.00528020
jmp 0x41f1a5
movzx eax, word [ecx + 0x400000]
lea edx, [ecx + 0x400002]
push eax
mov ecx, ebx
call fcn.00528540
mov dword [ebp - 0x220], eax
test eax, eax
je 0x41f39b
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x41f39b
mov eax, dword [0x40003c]
test eax, eax
je 0x41f39b
lea ebx, [ebx]
cmp eax, 0x7fffffff
jae 0x41f39b
cmp dword [eax + 0x400000], 0x4550
lea edx, [eax + 0x400000]
jmp 0x41f200
jne 0x41f39b
lea eax, [ebp - 0x228]
mov ecx, 0x400000
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.00528120
nop
test eax, eax
js 0x41f39b
mov eax, dword [ebp - 0x228]
mov ecx, 0x6333c4
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
lock bts dword [ecx], 0
setb al
test al, al
je 0x41f256
call sym.SystemInformer.exe_PhfAcquireQueuedLockExclusive
mov eax, dword [0x6333c0]
inc eax
mov dword [0x6333c0], eax
cmp eax, 1
jne 0x41f294
push 0x62d940
push 4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
jns 0x41f294
push eax
lfence
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
or edi, 0xffffffff
mov eax, 0x6333c4
mov esi, edi
lock xadd dword [eax], esi
mov eax, esi
and al, 6
cmp al, 2
jne 0x41f2ce
dec esi
mov edx, 0x6333c4
mov eax, esi
lea ecx, [esi + 4]
lock cmpxchg dword [edx], ecx
lea edx, [esi + 4]
cmp eax, esi
jne 0x41f2ce
mov ecx, 0x6333c4
call fcn.00521000
mov esi, dword [ebp - 0x220]
mov eax, esi
mov ecx, dword [ebp - 0x224]
xchg dword [ecx], eax
mov eax, dword [ebp - 0x228]
mov ecx, 0x6333c4
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x218], eax
lock bts dword [ecx], 0
setb al
test al, al
je 0x41f30c
call sym.SystemInformer.exe_PhfAcquireQueuedLockExclusive
sub dword [0x6333c0], 1
jne 0x41f338
lea eax, [ebp - 0x210]
push eax
push dword [0x62d940]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov ecx, 0x6333c4
lock xadd dword [ecx], edi
mov eax, edi
and al, 6
cmp al, 2
jne 0x41f364
dec edi
mov eax, edi
lea edx, [edi + 4]
mov esi, edx
lock cmpxchg dword [ecx], esi
cmp eax, edi
jne 0x41f35e
call fcn.00521000
mov esi, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x22c]
mov eax, ebx
xchg dword [ecx], eax
cmp eax, ebx
jne 0x41f386
cmp byte [ebp - 0x219], 0
je 0x41f386
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 8