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

Disassembly:
push 0xffffffffffffffff
push 0x493834
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x4b7110]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push ebp
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x194]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], esi
lea eax, [esi + 8]
xor ebx, ebx
mov dword [esp + 0x19c], ebx
push eax
mov dword [esi], vtable.KProxyWrapper.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x19c], 1
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
lea ebp, [esi + 0x24]
call edx
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x19c], 2
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esi + 0x30], eax
mov byte [esp + 0x19c], 3
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esi + 0x34], eax
mov eax, 0xf
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov dword [esp + 0x18c], eax
mov dword [esp + 0x188], ebx
mov byte [esp + 0x178], bl
mov dword [esp + 0x170], eax
mov dword [esp + 0x16c], ebx
mov byte [esp + 0x15c], bl
mov dword [esp + 0x154], eax
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
mov dword [esp + 0x138], eax
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
cmp edi, ebx
mov byte [esp + 0x19c], 8
mov dword [esi + 4], edi
je 0x41007d
mov eax, dword [edi + 4]
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 8]
push ecx
lea ecx, [esp + 0x180]
mov dword [esp + 0x20], eax
call fcn.00404180
push 0xffffffffffffffff
push ebx
lea edx, [edi + 0x24]
push edx
lea ecx, [esp + 0x164]
call fcn.00404180
mov eax, dword [edi + 0x40]
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x44]
push ecx
lea ecx, [esp + 0x148]
mov dword [esp + 0x1c], eax
call fcn.00404180
push 0xffffffffffffffff
push ebx
add edi, 0x60
push edi
lea ecx, [esp + 0x12c]
call fcn.00404180
mov eax, dword [esp + 0x14]
sub eax, ebx
je 0x40ff03
sub eax, 1
je 0x40fefa
sub eax, 4
jne 0x40ff03
mov dword [esi + 0x20], 2
jmp 0x40ff06
mov dword [esi + 0x20], 1
jmp 0x40ff06
mov dword [esi + 0x20], ebx
cmp dword [esp + 0x18c], 0x10
mov edi, dword [esp + 0x178]
jae 0x40ff1e
lea edi, [esp + 0x178]
lea edx, [esp + 0x20]
mov dword [esp + 0x1c], edx
call dword [section..data]
push eax
push edi
lea eax, [esp + 0x24]
call fcn.004034a0
mov byte [esp + 0x19c], 9
mov edx, dword [esp + 0x1c]
mov edi, ebp
call fcn.00402180
mov byte [esp + 0x19c], 8
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x40ff67
push eax
call fcn.0045f409
add esp, 4
mov eax, dword [esp + 0x15c]
mov ebp, 0x10
cmp dword [esp + 0x170], ebp
jae 0x40ff83
lea eax, [esp + 0x15c]
push 0xa
push ebx
push eax
call fcn.0046083b
add esp, 0xc
cmp dword [esp + 0x10], ebx
mov dword [esi + 0x28], eax
je 0x41005d
cmp dword [esp + 0x154], ebp
mov edi, dword [esp + 0x140]
mov dword [esi + 0x2c], 1
jae 0x40ffba
lea edi, [esp + 0x140]
lea edx, [esp + 0x20]
mov dword [esp + 0x1c], edx
call dword [section..data]
push eax
push edi
lea eax, [esp + 0x24]
call fcn.004034a0
mov byte [esp + 0x19c], 0xa
mov edx, dword [esp + 0x1c]
lea edi, [esi + 0x30]
call fcn.00402180
mov byte [esp + 0x19c], 8
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x410004
push eax
call fcn.0045f409
add esp, 4
cmp dword [esp + 0x138], ebp
mov edi, dword [esp + 0x124]
jae 0x41001b
lea edi, [esp + 0x124]
lea edx, [esp + 0x20]
mov dword [esp + 0x1c], edx
call dword [section..data]
push eax
push edi
lea eax, [esp + 0x24]
call fcn.004034a0
mov byte [esp + 0x19c], 0xb
mov edx, dword [esp + 0x1c]
lea edi, [esi + 0x34]
call fcn.00402180
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x41005d
push eax
call fcn.0045f409
add esp, 4
cmp dword [esp + 0x138], ebp
jb 0x410076
mov edx, dword [esp + 0x124]
push edx
call fcn.0045eebc
add esp, 4
mov eax, 0xf
jmp 0x410082
mov ebp, 0x10
cmp dword [esp + 0x154], ebp
mov dword [esp + 0x138], eax
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
jb 0x4100b5
mov eax, dword [esp + 0x140]
push eax
call fcn.0045eebc
add esp, 4
mov eax, 0xf
cmp dword [esp + 0x170], ebp
mov dword [esp + 0x154], eax
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
jb 0x4100e8
mov ecx, dword [esp + 0x15c]
push ecx
call fcn.0045eebc
add esp, 4
mov eax, 0xf
cmp dword [esp + 0x18c], ebp
mov dword [esp + 0x170], eax
mov dword [esp + 0x16c], ebx
mov byte [esp + 0x15c], bl
jb 0x410116
mov edx, dword [esp + 0x178]
push edx
call fcn.0045eebc
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.0045eec1
add esp, 0x190
ret