Function at 0x41f0e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x62e040]
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 0x41f1ef
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00582250
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f170
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 0x41f1e8
push 0x200
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x41f1e8
cmp dword [0x62ebb0], 0x3e
jae 0x41f41b
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x41f41b
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 0x41f210
push ecx
xor edx, edx
mov ecx, ebx
call fcn.00528c80
jmp 0x41f225
movzx eax, word [ecx + 0x400000]
lea edx, [ecx + 0x400002]
push eax
mov ecx, ebx
call fcn.005291a0
mov dword [ebp - 0x220], eax
test eax, eax
je 0x41f41b
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x41f41b
mov eax, dword [0x40003c]
test eax, eax
je 0x41f41b
lea ebx, [ebx]
cmp eax, 0x7fffffff
jae 0x41f41b
cmp dword [eax + 0x400000], 0x4550
lea edx, [eax + 0x400000]
jmp 0x41f280
jne 0x41f41b
lea eax, [ebp - 0x228]
mov ecx, 0x400000
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.00528d80
nop
test eax, eax
js 0x41f41b
mov eax, dword [ebp - 0x228]
mov ecx, 0x634364
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 0x41f2d6
call sym.SystemInformer.exe_PhfAcquireQueuedLockExclusive
mov eax, dword [0x634360]
inc eax
mov dword [0x634360], eax
cmp eax, 1
jne 0x41f314
push 0x62e940
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 0x41f314
push eax
lfence
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
or edi, 0xffffffff
mov eax, 0x634364
mov esi, edi
lock xadd dword [eax], esi
mov eax, esi
and al, 6
cmp al, 2
jne 0x41f34e
dec esi
mov edx, 0x634364
mov eax, esi
lea ecx, [esi + 4]
lock cmpxchg dword [edx], ecx
lea edx, [esi + 4]
cmp eax, esi
jne 0x41f34e
mov ecx, 0x634364
call fcn.00521b80
mov esi, dword [ebp - 0x220]
mov eax, esi
mov ecx, dword [ebp - 0x224]
xchg dword [ecx], eax
mov eax, dword [ebp - 0x228]
mov ecx, 0x634364
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 0x41f38c
call sym.SystemInformer.exe_PhfAcquireQueuedLockExclusive
sub dword [0x634360], 1
jne 0x41f3b8
lea eax, [ebp - 0x210]
push eax
push dword [0x62e940]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov ecx, 0x634364
lock xadd dword [ecx], edi
mov eax, edi
and al, 6
cmp al, 2
jne 0x41f3e4
dec edi
mov eax, edi
lea edx, [edi + 4]
mov esi, edx
lock cmpxchg dword [ecx], esi
cmp eax, edi
jne 0x41f3de
call fcn.00521b80
mov esi, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x22c]
mov eax, ebx
xchg dword [ecx], eax
cmp eax, ebx
jne 0x41f406
cmp byte [ebp - 0x219], 0
je 0x41f406
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.005802ef
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.005802ef
mov esp, ebp
pop ebp
ret 8