Function at 0x4f1290
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x83c106
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
xor ebp, ebp
call fcn.004f18a0
mov al, byte [esi + 0x16]
test al, al
je 0x4f12c9
mov ecx, dword [esi + 8]
mov byte [esi + 0x16], 0
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov al, byte [esi + 0x12]
test al, al
jne 0x4f1318
mov al, byte [esi + 0x15]
test al, al
jne 0x4f151f
mov ecx, dword [esi + 8]
call fcn.004f1a60
mov ecx, dword [esi + 8]
mov dword [esi + 0x34], eax
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 8]
mov dword [esi + 0x28], eax
call fcn.004f1a40
mov ecx, dword [esi + 8]
mov dword [esi + 0x30], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [esi + 0x2c], eax
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebx
lea eax, [esi + 0x38]
push edi
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov cl, byte [esi + 0x13]
mov ebx, dword [esi + 0x20]
cmp ebx, 0xffffffff
mov edi, dword [esi + 0x18]
mov dl, byte [esi + 0x24]
mov al, byte [esi + 0x14]
mov byte [esp + 0x13], cl
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x18], dl
mov dword [esp + 0x1c], ecx
mov byte [esi + 0x12], 0
je 0x4f13e7
test al, al
je 0x4f136c
push ebx
mov ecx, 0xb6b970
call fcn.004f35f0
jmp 0x4f13a0
push 0x28
call fcn.0082119a
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
xor eax, eax
cmp edi, eax
mov dword [esp + 0x34], eax
je 0x4f1398
mov ecx, dword [esi + 0xc]
push eax
push ebx
call fcn.004e0d20
push eax
mov ecx, edi
call fcn.005026b0
mov dword [esp + 0x34], 0xffffffff
mov ebp, eax
test ebp, ebp
je 0x4f13bd
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx]
test al, al
jne 0x4f13bd
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax + 0x18]
xor ebp, ebp
mov ecx, dword [esi + 8]
call fcn.004f1a60
mov edi, dword [esp + 0x14]
cmp eax, edi
jne 0x4f13f1
test ebp, ebp
je 0x4f13da
mov ecx, dword [esi + 8]
push ebp
call fcn.004f1de0
mov ecx, dword [esi + 8]
call fcn.004f1ff0
jmp 0x4f14c6
mov ecx, dword [esi + 8]
push 0
call fcn.004f1de0
mov al, byte [esp + 0x13]
test al, al
je 0x4f1406
push edi
mov ecx, 0xb6b970
call fcn.004f35f0
jmp 0x4f1445
push 0x28
call fcn.0082119a
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
test edi, edi
mov dword [esp + 0x34], 1
je 0x4f143b
mov ecx, dword [esp + 0x14]
push 0
push ecx
mov ecx, dword [esi + 0xc]
call fcn.004e0d20
push eax
mov ecx, edi
call fcn.005026b0
jmp 0x4f143d
xor eax, eax
mov dword [esp + 0x34], 0xffffffff
mov edi, eax
test edi, edi
je 0x4f149e
mov edx, dword [edi]
mov ecx, edi
call dword [edx]
test al, al
mov ecx, edi
je 0x4f1497
mov ebx, dword [edi]
call dword [ebx + 8]
mov ecx, eax
mov eax, dword [esp + 0x1c]
xor edx, edx
div ecx
mov ecx, edi
push edx
call dword [ebx + 0x10]
test ebp, ebp
mov ecx, dword [esi + 8]
je 0x4f1476
push ebp
jmp 0x4f1478
push 0
call fcn.004f1de0
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 8]
push 1
push edx
push edi
call fcn.004f23d0
mov ebx, dword [esp + 0x20]
mov byte [esi + 0x15], 0
jmp 0x4f14c6
mov eax, dword [edi]
push 1
call dword [eax + 0x18]
mov ecx, dword [esi + 8]
push 0
call fcn.004f1de0
test ebp, ebp
je 0x4f14c2
mov ecx, dword [esp + 0x18]
push 1
push ecx
mov ecx, dword [esi + 8]
push ebp
call fcn.004f23d0
mov byte [esi + 0x15], 0
jmp 0x4f14c6
mov byte [esi + 0x15], 1
mov al, byte [esi + 0x15]
test al, al
jne 0x4f14fb
mov ecx, dword [esi + 8]
call fcn.004f1a60
mov ecx, dword [esi + 8]
mov dword [esi + 0x34], eax
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 8]
mov dword [esi + 0x28], eax
call fcn.004f1a40
mov ecx, dword [esi + 8]
mov dword [esi + 0x30], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [esi + 0x2c], eax
jmp 0x4f1512
cmp ebx, 0xffffffff
jne 0x4f150c
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
jmp 0x4f1512
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov ecx, dword [esp + 0x24]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret