Function at 0x409d30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455e2b
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x46c864]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0x6c]
add eax, 0xa98
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x6c]
cmp dword [ecx + 0x24], 0
je 0x409da9
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0
je 0x409d98
push 1
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x50]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x70], eax
jmp 0x409d9f
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x6c]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x6c]
cmp dword [ecx + 0x28], 0
jne 0x409ddd
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
push 0x45b960
call fcn.00407cb0
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
push 0x167
call fcn.00407cd0
mov ecx, dword [ebp - 0x6c]
add ecx, 0x28
call fcn.00409f80
lea ecx, [ebp - 0x4c]
call fcn.00417270
lea edx, [ebp - 0x4c]
push edx
mov ecx, dword [ebp - 0x6c]
add ecx, 4
call fcn.00406510
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x38]
push ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 0x30]
push edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x2c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004172b0
push 0x10
call fcn.00423830
add esp, 4
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x64], 0
je 0x409e5c
push 0x26200a
mov ecx, dword [ebp - 0x6c]
add ecx, 0x2c
call fcn.00417330
push eax
mov ecx, dword [ebp - 0x6c]
add ecx, 0x2c
call fcn.00417310
push eax
mov ecx, dword [ebp - 0x64]
call fcn.00424f30
mov dword [ebp - 0x74], eax
jmp 0x409e63
mov dword [ebp - 0x74], 0
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x60], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x60]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x24]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004244b0
mov dword [ebp - 4], 1
push 0
push 0
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 0x28]
push edx
lea ecx, [ebp - 0x3c]
call fcn.004246b0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x38]
sub ecx, 2
push ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x34]
sub eax, 2
push eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 0x30]
push edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x2c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004172b0
push 3
sub esp, 0x10
mov edx, esp
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x28]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x24]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x20]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x6c]
add ecx, 0x44
call fcn.00406070
push ecx
fld dword [0x45b95c]
fstp dword [esp]
push 0xdc
push 0xdc
push 0xdc
push 0xff
lea ecx, [ebp - 0x68]
call fcn.00423de0
push eax
lea ecx, [ebp - 0x34]
call fcn.00424120
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x44]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004245a0
mov edx, dword [ebp - 0x6c]
add edx, 0xa98
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00424170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00424500
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret