Function at 0x4d5183
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c854e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6c10c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
lea esi, [ebx + 4]
and dword [ebp - 0x18], 0
mov ecx, 0x6c6ba4
mov dword [ebx], method.Concurrency::details::InternalContextBase.virtual_0
mov dword [esi + 4], eax
xor eax, eax
mov dword [ebp - 0x18], esi
inc eax
mov dword [esi], 0x64ccec
lock xadd dword [ecx], eax
push dword [ebp + 0xc]
inc eax
lea ecx, [esi + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0xc], eax
call fcn.004095ee
xor eax, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov word [esi + 0x34], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x54]
xor eax, eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
call fcn.004d64c8
xor ecx, ecx
lea eax, [ebx + 0xb8]
mov dword [ebx + 0xa8], ecx
mov dword [ebx + 0xac], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [ebp + 8], eax
lea eax, [ebx + 0xc8]
mov dword [ebx + 0xc0], ecx
mov dword [ebx + 0xc4], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea eax, [ebx + 0xd4]
push 2
push eax
mov word [ebx + 0xd0], cx
call fcn.00572008
mov eax, dword [ebp + 0x18]
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebx + 0x104], ecx
mov dword [ebx + 0x108], ecx
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x110], ecx
mov dword [ebx + 0x114], ecx
mov dword [ebx + 0x118], ecx
lea ecx, [ebp - 0x2c]
call fcn.0044cfd9
mov ecx, dword [eax]
mov dword [ebx + 0xa8], ecx
mov eax, dword [eax + 4]
mov dword [ebx + 0xac], eax
lea eax, [ebx + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp + 0x10]
lea edi, [ebx + 0x98]
lea esi, [ebp + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ecx], 0
sete al
test al, al
je 0x4d52e7
cmp byte [ebp + 0x1c], 0
jne 0x4d52e7
xor ebx, ebx
lea ecx, [ebp - 0x2c]
inc ebx
call fcn.004d88c9
jmp 0x4d52f3
push 2
pop ebx
push ecx
lea ecx, [ebp - 0x20]
call fcn.00410e05
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
call fcn.0043ef70
test bl, 2
je 0x4d531d
and ebx, 0xfffffffd
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4d5317
call fcn.00411ee7
or dword [ebp - 4], 0xffffffff
jmp 0x4d531f
xor edi, edi
test bl, 1
je 0x4d533e
and ebx, 0xfffffffe
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4d533a
call fcn.00411ee7
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 0
sete al
test al, al
je 0x4d53d9
mov ecx, dword [esi]
test ecx, ecx
sete al
test al, al
je 0x4d5368
or ebx, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x20]
jmp 0x4d5379
mov eax, dword [ecx]
or ebx, 8
call dword [eax + 0x14]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00410e05
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], edi
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi + 0xc4]
mov dword [edi + 0xc4], edx
mov dword [edi + 0xc0], esi
mov dword [ebp - 4], 2
test ecx, ecx
je 0x4d53a8
call fcn.00411ee7
or dword [ebp - 4], 0xffffffff
test bl, 8
je 0x4d53cb
and ebx, 0xfffffff7
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4d53c7
call fcn.00411ee7
or dword [ebp - 4], 0xffffffff
test bl, 4
je 0x4d5420
mov dword [ebp - 4], 4
jmp 0x4d5410
push ecx
lea ecx, [ebp - 0x20]
call fcn.00410e05
mov edi, dword [ebp - 0x14]
mov esi, eax
mov ecx, dword [edi + 0xc4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov dword [edi + 0xc4], edx
mov ecx, dword [esi]
mov eax, dword [edi + 0xc0]
mov dword [esi], eax
mov dword [edi + 0xc0], ecx
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4d541c
call fcn.00411ee7
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0x1c], 0
lea ebx, [edi + 0xb8]
je 0x4d544c
mov ecx, dword [ebx]
test ecx, ecx
je 0x4d5447
mov eax, dword [ecx]
call dword [eax + 0x48]
test al, al
jne 0x4d544c
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp dword [eax], 0
jne 0x4d544c
xor eax, eax
inc eax
jmp 0x4d544e
xor eax, eax
mov byte [edi + 0xd0], al
test al, al
jne 0x4d547c
mov ecx, dword [ebx]
test ecx, ecx
je 0x4d547c
mov eax, dword [ecx]
call dword [eax + 0x48]
test al, al
jne 0x4d5470
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
push ebx
lea ecx, [edi + 0xc8]
call fcn.0043ef70
mov ecx, edi
call fcn.004d5bbe
test al, al
je 0x4d54a3
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
mov edi, dword [esi]
call fcn.004d868e
push edx
push eax
push 0
mov ecx, esi
call dword [edi]
mov edi, dword [ebp - 0x14]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c