Function at 0x40d440
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44eb31
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], 2
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
call edx
add eax, 0x10
mov dword [esi + 4], eax
mov byte [esp + 0x1c], 3
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
call edx
add eax, 0x10
mov dword [esi + 8], eax
mov byte [esp + 0x1c], 4
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
lea edi, [esi + 0xc]
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 5
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
call edx
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x1c], 6
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [esp + 0x1c], 7
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
call edx
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [esp + 0x1c], 8
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
call edx
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [esp + 0x1c], 9
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
lea ebx, [esi + 0x20]
call edx
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x1c], 0xa
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
call edx
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [esp + 0x1c], 0xb
mov eax, dword [0x46ecec]
lea ebp, [esi + 0x34]
mov ecx, 0x46ecec
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp], eax
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1c], 0xd
mov dword [esi], eax
lea eax, [esp + 0x2c]
call fcn.004050a0
lea eax, [esp + 0x30]
mov edi, ebx
call fcn.004050a0
lea eax, [esp + 0x34]
mov edi, ebp
call fcn.004050a0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esi + 0x40], eax
mov byte [esp + 0x1c], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d5fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d622
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d64a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x20