Function at 0x4297e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a22f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
push edi
lea edi, [ebx + 0xc]
call fcn.00429ce0
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x4d9f40
call esi
mov ebp, 0x4d9f40
mov dword [esp + 0x14], ebp
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov eax, dword [ebx]
cmp eax, ecx
mov dword [esp + 0x18], ecx
jle 0x429a83
jmp 0x42983c
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, edx
mov edi, dword [esp + 0x18]
mov eax, dword [ebx + 4]
add edi, edi
add edi, edi
lea ecx, [edi + eax]
mov eax, dword [ecx]
movzx edx, word [eax + 0xc]
add eax, 0xc
cmp dx, 0x2f
je 0x429863
cmp dx, 0x2d
jne 0x429a12
cmp word [eax + 2], 0
je 0x429a12
push 1
lea edx, [esp + 0x28]
push edx
call fcn.0040e480
mov edi, eax
mov dword [esp + 0x20], edi
mov byte [esp + 0x34], 1
mov eax, dword [edi]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebp
call esi
test eax, eax
jg 0x4298b4
mov ebx, dword [ebp + 8]
mov edi, ebp
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [edi]
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x18], ebp
mov edi, eax
call esi
test eax, eax
jg 0x4298e3
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, dword [esp + 0x3c]
lea eax, [ebp + 0xc]
push 0x3a
push eax
call fcn.0044649b
add esp, 8
test eax, eax
je 0x4299d0
sub eax, ebp
sub eax, 0xc
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x4299d0
lea eax, [edi + 1]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040e480
push edi
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 2
call fcn.0040e4b0
mov edi, eax
mov dword [esp + 0x20], edi
mov byte [esp + 0x34], 3
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebp
call esi
test eax, eax
jg 0x429969
mov ebx, dword [ebp + 8]
mov edi, ebp
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [edi]
mov byte [esp + 0x34], 2
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x18], ebp
mov edi, eax
call esi
test eax, eax
jg 0x429998
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, dword [esp + 0x3c]
lea eax, [ebp + 0xc]
call fcn.00420920
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, eax
add ebx, 0xc
call fcn.00429ec0
mov byte [esp + 0x34], 0
mov edi, dword [esp + 0x1c]
push edi
call esi
test eax, eax
jg 0x429a6e
mov ebx, dword [edi + 8]
jmp 0x429a64
push 0x4d9f40
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x20], 0x4d9f40
lea eax, [ebp + 0xc]
mov byte [esp + 0x34], 4
call fcn.00420920
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, eax
add ebx, 0xc
call fcn.00429ec0
push 0x4d9f40
mov byte [esp + 0x38], 0
call esi
jmp 0x429a55
push 0x4d9f40
call esi
mov dword [esp + 0x20], 0x4d9f40
mov byte [esp + 0x34], 5
mov esi, dword [ebx + 4]
mov eax, 0x4d9f4c
add esi, edi
call fcn.00420920
push esi
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
add ebx, 0xc
call fcn.00429ec0
push 0x4d9f40
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x429a6e
mov ebx, dword [0x4d9f48]
mov edi, 0x4d9f40
mov esi, 0x4da170
call fcn.00432310
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
inc eax
cmp eax, dword [edx]
mov dword [esp + 0x18], eax
jl 0x429834
push ebp
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x429aa5
mov ebx, dword [ebp + 8]
mov edi, ebp
mov esi, 0x4da170
call fcn.00432310
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 4