Function at 0x41d3c0
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 0x41d4cf
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00581cf0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41d450
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 0x41d4c8
push 0x200
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x41d4c8
cmp dword [0x62dbb0], 0x3e
jae 0x41d6f4
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x41d6f4
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 0x41d4f0
push ecx
xor edx, edx
mov ecx, ebx
call fcn.00525660
jmp 0x41d505
movzx eax, word [ecx + 0x400000]
lea edx, [ecx + 0x400002]
push eax
mov ecx, ebx
call fcn.00525ba0
mov dword [ebp - 0x220], eax
test eax, eax
je 0x41d6f4
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x41d6f4
mov eax, dword [0x40003c]
test eax, eax
je 0x41d6f4
lea ebx, [ebx]
cmp eax, 0x7fffffff
jae 0x41d6f4
cmp dword [eax + 0x400000], 0x4550
lea edx, [eax + 0x400000]
jmp 0x41d560
jne 0x41d6f4
lea eax, [ebp - 0x228]
mov ecx, 0x400000
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.00525760
nop
test eax, eax
js 0x41d6f4
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
mov eax, 0x632ae4
lock bts dword [eax], 0
jae 0x41d5b3
mov ecx, eax
call sym.SystemInformer.exe_PhfAcquireQueuedLockExclusive
mov eax, dword [0x632ae0]
inc eax
mov dword [0x632ae0], eax
cmp eax, 1
jne 0x41d5f4
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 0x41d5f4
push eax
lfence
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
or edi, 0xffffffff
mov eax, 0x632ae4
mov esi, edi
lock xadd dword [eax], esi
mov eax, esi
and al, 6
cmp al, 2
jne 0x41d62e
dec esi
mov edx, 0x632ae4
mov eax, esi
lea ecx, [esi + 4]
lock cmpxchg dword [edx], ecx
lea edx, [esi + 4]
cmp eax, esi
jne 0x41d62e
mov ecx, 0x632ae4
call fcn.005212a0
mov esi, dword [ebp - 0x220]
mov eax, esi
mov ecx, dword [ebp - 0x224]
xchg dword [ecx], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov eax, 0x632ae4
lock bts dword [eax], 0
jae 0x41d669
mov ecx, eax
call sym.SystemInformer.exe_PhfAcquireQueuedLockExclusive
sub dword [0x632ae0], 1
jne 0x41d695
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, 0x632ae4
lock xadd dword [ecx], edi
mov eax, edi
and al, 6
cmp al, 2
jne 0x41d6c1
dec edi
mov eax, edi
lea edx, [edi + 4]
mov esi, edx
lock cmpxchg dword [ecx], esi
cmp eax, edi
jne 0x41d6bb
call fcn.005212a0
mov esi, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x22c]
mov eax, ebx
xchg dword [ecx], eax
cmp eax, ebx
jne 0x41d6df
cmp byte [ebp - 0x219], 0
je 0x41d6df
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.0057fcaf
mov esp, ebp
pop ebp
ret 8
mov ecx, dword ds:[ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 8