Function at 0x408d20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42eb97
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x442094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov byte [ebp - 4], 1
lea edi, [ebx + 0x10]
mov dword [ebp - 0x10], edi
lea esi, [edi + 4]
push 0
mov dword [edi], 0
mov ecx, esi
push 0
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040b0f0
mov dword [esi], eax
mov byte [ebp - 4], 4
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 5
mov ecx, edi
push 8
mov dword [edi], 0x3f800000
call fcn.0040b660
mov byte [ebp - 4], 7
lea edi, [ebx + 0x30]
mov dword [ebp - 0x18], edi
lea esi, [edi + 4]
push 0
mov dword [edi], 0
mov ecx, esi
push 0
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040b180
mov dword [esi], eax
mov byte [ebp - 4], 0xa
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 0xb
mov ecx, edi
push 8
mov dword [edi], 0x3f800000
call fcn.0040b660
mov byte [ebp - 4], 0xd
lea edi, [ebx + 0x50]
mov dword [ebp - 0x18], edi
lea esi, [edi + 4]
push 0
mov dword [edi], 0
mov ecx, esi
push 0
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040b0f0
mov dword [esi], eax
mov byte [ebp - 4], 0x10
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 0x11
mov ecx, edi
push 8
mov dword [edi], 0x3f800000
call fcn.0040b660
mov byte [ebp - 4], 0x13
lea eax, [ebx + 0x74]
push 0
push 0xfa0
push eax
mov dword [ebx + 0x70], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
test eax, eax
je 0x408fd6
mov byte [ebp - 4], 0x14
push 0x38
call fcn.0042c835
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x15
test eax, eax
je 0x408ecc
push dword [ebp + 8]
mov ecx, eax
call fcn.0040ce00
jmp 0x408ece
xor eax, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
call fcn.00408550
mov byte [ebp - 4], 0x16
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x1c]
mov dword [ebx], ecx
mov esi, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0x14
or edi, 0xffffffff
test esi, esi
je 0x408f30
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x408f30
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x408f30
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x34
call fcn.0042c835
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x17
test eax, eax
je 0x408f57
push ebx
push 0x40a880
push dword [ebp + 0xc]
mov ecx, eax
call fcn.0040c070
jmp 0x408f59
xor eax, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
call fcn.004084a0
mov byte [ebp - 4], 0x18
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [ebx + 8], ecx
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebx + 0xc], eax
mov byte [ebp - 4], 0x14
test esi, esi
je 0x408fb9
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x408fb9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x408fb9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x408fe8
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x4391a8
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3