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

Disassembly:
push 0xffffffffffffffff
push 0x447b58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov ebx, ecx
mov eax, dword [ebx + 0x20]
push edi
lea ebp, [eax + 0x16]
push 0
push ebp
lea ecx, [esp + 0x18]
call fcn.0040bf70
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0x20]
mov edx, dword [0x45c2b8]
mov dword [ecx], edx
mov cx, word [ebx + 8]
mov edx, dword [esp + 0x14]
mov word [edx + 4], cx
mov cx, word [ebx + 0xa]
mov edx, dword [esp + 0x14]
mov word [edx + 6], cx
mov cx, word [ebx + 0xc]
mov edx, dword [esp + 0x14]
mov word [edx + 8], cx
mov cx, word [ebx + 0xe]
mov edx, dword [esp + 0x14]
mov word [edx + 0xa], cx
mov ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x14]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x14]
mov dword [edx + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov word [ecx + 0x14], ax
mov edi, dword [esp + 0x14]
mov esi, dword [ebx + 0x1c]
movzx ecx, ax
mov edx, ecx
shr ecx, 2
add edi, 0x16
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x2c]
push ebp
push eax
mov dword [esp + 0x30], 0
call fcn.0040eb10
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0040bfa0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
push esi
mov esi, ecx
mov al, byte [esi + 0x3c]
test al, al
jne 0x40d0fd
mov ecx, dword [esi + 0x2c]
call fcn.0040df80
test eax, eax
jne 0x40cfc3
mov ecx, dword [esi + 0x2c]
call fcn.0040e320
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx]
push 2
push 0
push 0
call dword [edx + 0x28]
mov ax, word [esi + 0x48]
mov ecx, dword [esi + 0x2c]
push ebx
push edi
mov word [esi + 0xe], ax
mov dword [esi + 0x10], 0
xor bl, bl
call fcn.0040df80
test eax, eax
je 0x40d059
mov ecx, dword [esi + 0x2c]
call fcn.0040dfa0
test eax, eax
jne 0x40d059
mov ecx, dword [esi + 0x2c]
push ebp
call fcn.0040dfb0
push 1
mov ecx, esi
mov ebp, eax
call fcn.0040c470
movzx ecx, word [esi + 0xe]
shl ecx, 4
mov edx, 0xfffffffc
sub edx, ecx
mov edi, eax
add edi, edx
cmp ebp, edi
pop ebp
jb 0x40d059
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx + 0x44]
test eax, eax
jne 0x40d037
call fcn.0040dfe0
cmp eax, edi
jb 0x40d037
push 1
mov ecx, esi
call fcn.0040c4c0
jmp 0x40d057
mov ecx, dword [esi + 0x2c]
call fcn.0040e320
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx]
call dword [edx + 0x48]
push 0
mov ecx, esi
call fcn.0040c4c0
test al, al
je 0x40d059
mov bl, 1
mov ecx, esi
call fcn.0040c390
mov ecx, dword [esi + 0x2c]
call fcn.0040dfa0
mov ecx, esi
mov word [esi + 8], ax
call 0x40cbc0
test bl, bl
mov edi, eax
je 0x40d08e
mov ecx, dword [esi + 0x2c]
call fcn.0040dfa0
test eax, eax
je 0x40d08e
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0040c950
mov ecx, dword [esi + 0x2c]
call fcn.0040dfa0
movzx ecx, word [esi + 8]
cmp ecx, eax
je 0x40d0fb
mov ecx, dword [esi + 0x2c]
call fcn.0040dfa0
xor ebx, ebx
cmp word [esi + 0xe], bx
mov word [esi + 8], ax
je 0x40d0b8
mov word [esi + 0xc], bx
jmp 0x40d0bf
mov word [esi + 0xa], ax
mov dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx + 0x2c]
cmp eax, edi
jb 0x40d0d8
sub eax, edi
pop edi
mov dword [ecx + 0x2c], eax
pop ebx
mov ecx, esi
pop esi
jmp 0x40cbc0
call fcn.0040e320
mov eax, dword [esi + 0x2c]
sub dword [eax + 0x44], edi
mov edx, dword [esi + 0x2c]
mov ecx, dword [edx + 0x1c]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
call dword [eax + 0x28]
pop edi
pop ebx
mov ecx, esi
pop esi
jmp 0x40cbc0
pop edi
pop ebx
pop esi
ret