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

Disassembly:
push 0xffffffffffffffff
push 0x4236c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov dword [esp + 8], ecx
push esi
push edi
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x38]
call fcn.0041b610
mov esi, dword [edi]
mov edx, dword [0x42c56c]
lea ebx, [edi + 8]
cmp esi, edx
mov dword [esp + 0x14], edi
mov ebp, ebx
jne 0x41afc6
mov esi, dword [ebx]
jmp 0x41afe4
mov eax, dword [ebx]
cmp eax, edx
je 0x41afe4
mov ecx, dword [eax]
cmp ecx, edx
je 0x41afda
mov eax, ecx
mov ecx, dword [eax]
cmp ecx, edx
jne 0x41afd2
mov esi, dword [eax + 8]
lea ebp, [eax + 8]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x41b059
mov ecx, dword [edi]
mov dword [ecx + 4], eax
mov edx, dword [edi]
mov dword [eax], edx
mov ecx, dword [ebx]
cmp eax, ecx
jne 0x41b00a
mov dword [esi + 4], eax
jmp 0x41b01f
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov edx, dword [ebx]
mov dword [ebp], edx
mov ecx, dword [ebx]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 4]
cmp dword [ecx + 4], edi
jne 0x41b030
mov dword [ecx + 4], eax
jmp 0x41b03e
mov ecx, dword [edi + 4]
cmp dword [ecx], edi
jne 0x41b03b
mov dword [ecx], eax
jmp 0x41b03e
mov dword [ecx + 8], eax
mov ecx, dword [edi + 4]
mov dword [esp + 0x14], edi
mov dword [eax + 4], ecx
mov edx, dword [edi + 0x2c]
mov ecx, dword [eax + 0x2c]
mov dword [eax + 0x2c], edx
mov dword [edi + 0x2c], ecx
jmp 0x41b0e3
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
cmp dword [eax + 4], edi
jne 0x41b074
mov dword [eax + 4], esi
jmp 0x41b082
mov eax, dword [edi + 4]
cmp dword [eax], edi
jne 0x41b07f
mov dword [eax], esi
jmp 0x41b082
mov dword [eax + 8], esi
mov ebp, dword [ecx + 4]
cmp dword [ebp], edi
jne 0x41b0b1
mov edx, dword [0x42c56c]
mov eax, dword [ebx]
cmp eax, edx
jne 0x41b09e
mov edx, dword [edi + 4]
mov dword [ebp], edx
jmp 0x41b0b1
mov eax, dword [esi]
mov ecx, esi
cmp eax, edx
je 0x41b0ae
mov ecx, eax
mov eax, dword [ecx]
cmp eax, edx
jne 0x41b0a6
mov dword [ebp], ecx
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + 4]
cmp dword [ebx + 8], edi
jne 0x41b0e3
mov edx, dword [0x42c56c]
mov eax, dword [edi]
cmp eax, edx
jne 0x41b0ce
mov ecx, dword [edi + 4]
jmp 0x41b0e0
mov eax, dword [esi + 8]
mov ecx, esi
cmp eax, edx
je 0x41b0e0
mov ecx, eax
mov eax, dword [ecx + 8]
cmp eax, edx
jne 0x41b0d7
mov dword [ebx + 8], ecx
mov edx, dword [esp + 0x14]
mov ebx, 1
cmp dword [edx + 0x2c], ebx
jne 0x41b37f
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp esi, dword [ecx + 4]
je 0x41b37c
cmp dword [esi + 0x2c], ebx
jne 0x41b37c
mov eax, dword [esi + 4]
cmp esi, dword [eax]
jne 0x41b189
mov eax, dword [eax + 8]
xor edi, edi
cmp dword [eax + 0x2c], edi
jne 0x41b170
mov dword [eax + 0x2c], ebx
mov edx, dword [esi + 4]
mov dword [edx + 0x2c], edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
mov dword [eax + 8], edx
mov edx, dword [ecx]
cmp edx, dword [0x42c56c]
je 0x41b140
mov dword [edx + 4], eax
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 4]
jne 0x41b157
mov dword [edx + 4], ecx
jmp 0x41b165
mov edx, dword [eax + 4]
cmp eax, dword [edx]
jne 0x41b162
mov dword [edx], ecx
jmp 0x41b165
mov dword [edx + 8], ecx
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
cmp dword [ecx + 0x2c], ebx
jne 0x41b216
mov edx, dword [eax + 8]
cmp dword [edx + 0x2c], ebx
jne 0x41b216
jmp 0x41b1fb
mov eax, dword [eax]
xor edi, edi
cmp dword [eax + 0x2c], edi
jne 0x41b1e4
mov dword [eax + 0x2c], ebx
mov eax, dword [esi + 4]
mov dword [eax + 0x2c], edi
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov edx, dword [ecx + 8]
cmp edx, dword [0x42c56c]
je 0x41b1b3
mov dword [edx + 4], eax
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 4]
jne 0x41b1ca
mov dword [edx + 4], ecx
jmp 0x41b1d9
mov edx, dword [eax + 4]
cmp eax, dword [edx + 8]
jne 0x41b1d7
mov dword [edx + 8], ecx
jmp 0x41b1d9
mov dword [edx], ecx
mov dword [ecx + 8], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x2c], ebx
jne 0x41b2d0
mov edx, dword [eax]
cmp dword [edx + 0x2c], ebx
jne 0x41b2d0
mov dword [eax + 0x2c], edi
mov eax, dword [esp + 0x10]
mov esi, dword [esi + 4]
mov ecx, dword [eax + 4]
cmp esi, dword [ecx + 4]
jne 0x41b105
jmp 0x41b37c
mov edx, dword [eax + 8]
cmp dword [edx + 0x2c], ebx
jne 0x41b26d
mov ecx, dword [eax]
mov dword [ecx + 0x2c], ebx
mov ecx, dword [eax]
mov dword [eax + 0x2c], edi
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov edx, dword [ecx + 8]
cmp edx, dword [0x42c56c]
je 0x41b23b
mov dword [edx + 4], eax
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 4]
jne 0x41b252
mov dword [edx + 4], ecx
jmp 0x41b261
mov edx, dword [eax + 4]
cmp eax, dword [edx + 8]
jne 0x41b25f
mov dword [edx + 8], ecx
jmp 0x41b261
mov dword [edx], ecx
mov dword [ecx + 8], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], edx
mov ecx, dword [esi + 4]
mov dword [ecx + 0x2c], ebx
mov edx, dword [eax + 8]
mov dword [edx + 0x2c], ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
mov dword [eax + 8], edx
mov edx, dword [ecx]
cmp edx, dword [0x42c56c]
je 0x41b29a
mov dword [edx + 4], eax
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 4]
jne 0x41b2b6
mov dword [edx + 4], ecx
mov dword [ecx], eax
jmp 0x41b379
mov edx, dword [eax + 4]
cmp eax, dword [edx]
jne 0x41b2c6
mov dword [edx], ecx
mov dword [ecx], eax
jmp 0x41b379
mov dword [edx + 8], ecx
mov dword [ecx], eax
jmp 0x41b379
mov ecx, dword [eax]
cmp dword [ecx + 0x2c], ebx
jne 0x41b324
mov edx, dword [eax + 8]
mov dword [edx + 0x2c], ebx
mov ecx, dword [eax + 8]
mov dword [eax + 0x2c], edi
mov edx, dword [ecx]
mov dword [eax + 8], edx
mov edx, dword [ecx]
cmp edx, dword [0x42c56c]
je 0x41b2f5
mov dword [edx + 4], eax
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 4]
jne 0x41b30c
mov dword [edx + 4], ecx
jmp 0x41b31a
mov edx, dword [eax + 4]
cmp eax, dword [edx]
jne 0x41b317
mov dword [edx], ecx
jmp 0x41b31a
mov dword [edx + 8], ecx
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], edx
mov ecx, dword [esi + 4]
mov dword [ecx + 0x2c], ebx
mov edx, dword [eax]
mov dword [edx + 0x2c], ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov edx, dword [ecx + 8]
cmp edx, dword [0x42c56c]
je 0x41b350
mov dword [edx + 4], eax
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 4]
jne 0x41b367
mov dword [edx + 4], ecx
jmp 0x41b376
mov edx, dword [eax + 4]
cmp eax, dword [edx + 8]
jne 0x41b374
mov dword [edx + 8], ecx
jmp 0x41b376
mov dword [edx], ecx
mov dword [ecx + 8], eax
mov dword [eax + 4], ecx
mov dword [esi + 0x2c], ebx
mov ebx, dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
lea ecx, [esp + 0x18]
call ebx
mov ebp, dword [esp + 0x14]
lea edi, [ebp + 0xc]
mov dword [esp + 0x1c], edi
mov eax, dword [edi + 0x14]
lea esi, [edi + 0x10]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call fcn.0041c5c0
mov ecx, dword [esi + 4]
push ecx
call fcn.0041bd80
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push edx
call fcn.0041c5c0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.0041b4e0
mov eax, dword [esi + 4]
push eax
call fcn.00421c18
xor eax, eax
add esp, 4
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x14]
xor esi, esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
mov eax, dword [0x42c570]
dec eax
mov dword [0x42c570], eax
jne 0x41b416
mov esi, dword [0x42c574]
mov dword [0x42c574], 0
lea ecx, [esp + 0x14]
call ebx
xor ebx, ebx
cmp esi, ebx
je 0x41b42b
push esi
call fcn.00421c18
add esp, 4
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x41b44f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41b446
cmp al, 0xff
je 0x41b446
dec al
mov byte [ecx], al
jmp 0x41b44f
push ecx
call fcn.00421c18
add esp, 4
push ebp
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.00421c18
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, dword [eax + 0xc]
pop edi
dec ecx
pop esi
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
pop ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8