Function at 0x402200
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6e5818
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x75aa5c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea eax, [esi + 0x1068]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esi, 0x8c
mov dword [esp + 0x30], 0
mov edi, dword [esi + 0x10]
cmp dword [esi + 0xc], edi
jbe 0x40225f
call fcn.005a7849
mov ebp, dword [esi + 0xc]
mov ebx, dword [esi]
cmp ebp, dword [esi + 0x10]
jbe 0x40226e
call fcn.005a7849
mov eax, dword [esi]
push edi
push ebx
push ebp
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00406b30
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x464]
mov ebp, dword [ebx + 0x44c]
mov edi, dword [ecx]
add ebx, 0x44c
mov edx, ecx
mov eax, ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
test ebp, ebp
je 0x4022ae
cmp ebp, dword [esp + 0x1c]
je 0x4022b3
call fcn.005a7849
cmp edi, dword [esp + 0x20]
je 0x4023bf
test ebp, ebp
jne 0x402363
call fcn.005a7849
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4022d6
call fcn.005a7849
cmp dword [edi + 0x10], 0
je 0x40234a
test ebp, ebp
jne 0x40236b
call fcn.005a7849
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4022f5
call fcn.005a7849
mov esi, dword [edi + 0x10]
test esi, esi
je 0x40234a
mov eax, esi
call fcn.00405f10
mov eax, dword [esi + 8]
test eax, eax
je 0x40231a
push eax
call fcn.005a6a8e
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40232a
push eax
call fcn.005a6a8e
add esp, 4
mov ecx, dword [esi + 0xc]
xor eax, eax
push ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
call fcn.005a6a8e
add esp, 4
push esi
call fcn.005a6a8e
add esp, 4
test ebp, ebp
jne 0x402353
call fcn.005a7849
cmp byte [edi + 0x15], 0
je 0x402373
call fcn.005a7849
jmp 0x4022a4
mov eax, dword [ebp]
jmp 0x4022cc
mov eax, dword [ebp]
jmp 0x4022eb
mov eax, dword [edi + 8]
cmp byte [eax + 0x15], 0
jne 0x40239f
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x15], 0
jne 0x4022a4
lea ebx, [ebx]
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x15], 0
je 0x402390
jmp 0x4022a4
mov eax, dword [edi + 4]
cmp byte [eax + 0x15], 0
jne 0x4023b8
cmp edi, dword [eax + 8]
jne 0x4023b8
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x4023a8
mov edi, eax
jmp 0x4022a4
mov eax, ebx
call fcn.00405a90
mov ebx, dword [esp + 0x14]
mov edi, dword [ebx + 0x46c]
mov edx, dword [ebx + 0x484]
mov esi, dword [edx]
add ebx, 0x46c
mov eax, edi
mov ebp, edx
mov dword [esp + 0x1c], eax
test edi, edi
je 0x4023f0
cmp edi, dword [esp + 0x1c]
je 0x4023f5
call fcn.005a7849
cmp esi, ebp
je 0x40249f
test edi, edi
jne 0x40244f
call fcn.005a7849
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x402412
call fcn.005a7849
cmp dword [esi + 0x10], 0
je 0x402439
test edi, edi
jne 0x402453
call fcn.005a7849
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x40242d
call fcn.005a7849
mov ecx, dword [esi + 0x10]
push ecx
call fcn.005a7656
add esp, 4
test edi, edi
jne 0x402442
call fcn.005a7849
cmp byte [esi + 0x15], 0
je 0x402457
call fcn.005a7849
jmp 0x4023e6
mov eax, dword [edi]
jmp 0x402408
mov eax, dword [edi]
jmp 0x402423
mov eax, dword [esi + 8]
cmp byte [eax + 0x15], 0
jne 0x40247f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
jne 0x4023e6
mov edi, edi
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
je 0x402470
jmp 0x4023e6
mov eax, dword [esi + 4]
cmp byte [eax + 0x15], 0
jne 0x402498
cmp esi, dword [eax + 8]
jne 0x402498
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x402488
mov esi, eax
jmp 0x4023e6
mov eax, ebx
call fcn.00405cb0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x48c]
mov eax, dword [edx + 8]
add ecx, 0x48c
call eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret