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

Disassembly:
push 0xffffffffffffffff
push 0x4176f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.0040d3d0
push 0
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.0040f4f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call fcn.0040f5d0
mov ecx, dword [ebx + 4]
mov dword [eax], ecx
lea ecx, [esp + 0x14]
call fcn.0040f5d0
mov dx, word [ebx + 8]
lea ecx, [esp + 0x14]
mov word [eax + 4], dx
call fcn.0040f5d0
mov cx, word [ebx + 0xa]
mov word [eax + 6], cx
lea ecx, [esp + 0x14]
call fcn.0040f5d0
mov dx, word [ebx + 0xc]
lea ecx, [esp + 0x14]
mov word [eax + 8], dx
call fcn.0040f5d0
mov cx, word [ebx + 0xe]
mov word [eax + 0xa], cx
lea ecx, [esp + 0x14]
call fcn.0040f5d0
mov dx, word [ebx + 0x10]
lea ecx, [esp + 0x14]
mov word [eax + 0xc], dx
call fcn.0040f5d0
mov cx, word [ebx + 0x12]
mov word [eax + 0xe], cx
lea ecx, [esp + 0x14]
call fcn.0040f5d0
mov edx, dword [ebx + 0x14]
lea ecx, [esp + 0x14]
mov dword [eax + 0x10], edx
call fcn.0040f5d0
mov ecx, dword [ebx + 0x18]
mov dword [eax + 0x14], ecx
lea ecx, [esp + 0x14]
call fcn.0040f5d0
mov edx, dword [ebx + 0x1c]
lea ecx, [esp + 0x14]
mov dword [eax + 0x18], edx
call fcn.0040f5d0
mov cx, word [ebx + 0x20]
mov word [eax + 0x1c], cx
lea ecx, [esp + 0x14]
call fcn.0040f5d0
mov dx, word [ebx + 0x22]
lea ecx, [esp + 0x14]
mov word [eax + 0x1e], dx
call fcn.0040f5d0
mov cx, word [ebx + 0x24]
mov word [eax + 0x20], cx
lea ecx, [esp + 0x14]
call fcn.0040f5d0
mov dx, word [ebx + 0x26]
lea ecx, [esp + 0x14]
mov word [eax + 0x22], dx
call fcn.0040f5d0
mov cx, word [ebx + 0x28]
mov word [eax + 0x24], cx
lea ecx, [esp + 0x14]
call fcn.0040f5d0
mov edx, dword [ebx + 0x2c]
lea ecx, [esp + 0x14]
mov dword [eax + 0x26], edx
call fcn.0040f5d0
mov ecx, dword [ebx + 0x30]
mov dword [eax + 0x2a], ecx
mov esi, dword [ebx + 0x34]
xor ebp, ebp
mov bp, word [ebx + 0x20]
lea ecx, [esp + 0x14]
call fcn.0040f5d0
mov ecx, ebp
mov edi, eax
mov edx, ecx
add edi, 0x2e
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov bp, word [ebx + 0x22]
test bp, bp
je 0x40d222
lea ecx, [ebx + 0x38]
and ebp, 0xffff
call fcn.0040f5d0
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0040f5d0
xor ecx, ecx
mov cx, word [ebx + 0x20]
lea edi, [eax + ecx + 0x2e]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov bp, word [ebx + 0x24]
test bp, bp
je 0x40d25f
mov esi, dword [ebx + 0x44]
lea ecx, [esp + 0x14]
and ebp, 0xffff
call fcn.0040f5d0
xor ecx, ecx
xor edx, edx
mov cx, word [ebx + 0x22]
mov dx, word [ebx + 0x20]
add eax, ecx
mov ecx, ebp
lea edi, [eax + edx + 0x2e]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
push 1
push esi
lea ecx, [esp + 0x1c]
call fcn.0040f5d0
mov ecx, dword [esp + 0x38]
push eax
call fcn.0040e0c0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040f520
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4