Function at 0x41d200
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x62a040]
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 0x41d30f
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0057e450
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41d290
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 0x41d308
push 0x200
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x41d308
cmp dword [0x62abb0], 0x3e
jae 0x41d53b
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x41d53b
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 0x41d330
push ecx
xor edx, edx
mov ecx, ebx
call fcn.00522940
jmp 0x41d345
movzx eax, word [ecx + 0x400000]
lea edx, [ecx + 0x400002]
push eax
mov ecx, ebx
call fcn.00522e60
mov dword [ebp - 0x220], eax
test eax, eax
je 0x41d53b
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x41d53b
mov eax, dword [0x40003c]
test eax, eax
je 0x41d53b
lea ebx, [ebx]
cmp eax, 0x7fffffff
jae 0x41d53b
cmp dword [eax + 0x400000], 0x4550
lea edx, [eax + 0x400000]
jmp 0x41d3a0
jne 0x41d53b
lea eax, [ebp - 0x228]
mov ecx, 0x400000
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.00522a40
nop
test eax, eax
js 0x41d53b
mov eax, dword [ebp - 0x228]
mov ecx, 0x630344
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 0x41d3f6
call sym.SystemInformer.exe_PhfAcquireQueuedLockExclusive
mov eax, dword [0x630340]
inc eax
mov dword [0x630340], eax
cmp eax, 1
jne 0x41d434
push 0x62a940
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 0x41d434
push eax
lfence
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
or edi, 0xffffffff
mov eax, 0x630344
mov esi, edi
lock xadd dword [eax], esi
mov eax, esi
and al, 6
cmp al, 2
jne 0x41d46e
dec esi
mov edx, 0x630344
mov eax, esi
lea ecx, [esi + 4]
lock cmpxchg dword [edx], ecx
lea edx, [esi + 4]
cmp eax, esi
jne 0x41d46e
mov ecx, 0x630344
call fcn.0051e5c0
mov esi, dword [ebp - 0x220]
mov eax, esi
mov ecx, dword [ebp - 0x224]
xchg dword [ecx], eax
mov eax, dword [ebp - 0x228]
mov ecx, 0x630344
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 0x41d4ac
call sym.SystemInformer.exe_PhfAcquireQueuedLockExclusive
sub dword [0x630340], 1
jne 0x41d4d8
lea eax, [ebp - 0x210]
push eax
push dword [0x62a940]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov ecx, 0x630344
lock xadd dword [ecx], edi
mov eax, edi
and al, 6
cmp al, 2
jne 0x41d504
dec edi
mov eax, edi
lea edx, [edi + 4]
mov esi, edx
lock cmpxchg dword [ecx], esi
cmp eax, edi
jne 0x41d4fe
call fcn.0051e5c0
mov esi, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x22c]
mov eax, ebx
xchg dword [ecx], eax
cmp eax, ebx
jne 0x41d526
cmp byte [ebp - 0x219], 0
je 0x41d526
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.0057c26f
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.0057c26f
mov esp, ebp
pop ebp
ret 8