Function at 0x40cd37
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x471c69
call fcn.00465b54
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
cmp dword [ebp + 8], ebx
push edi
mov dword [ebp - 0x14], esi
je 0x40cd6c
mov dword [esi + 0x10], 0x47bc18
mov dword [esi + 0x14], 0x47bc10
mov dword [esi + 0x478], ebx
mov dword [esi + 0x47c], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], ebx
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], ebx
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.0040d0d7
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
push 1
lea eax, [ebp + 0xb]
pop edi
lea ecx, [esi + 0x58]
push edi
push eax
mov byte [ebp - 4], 7
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov byte [esi + 0x54], bl
call fcn.0040554d
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 8
call fcn.0040554d
lea eax, [ebp + 0xb]
push edi
push eax
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 9
call fcn.0040554d
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [esi + 0xd0]
mov byte [ebp - 4], 0xa
call fcn.0040554d
lea eax, [ebp + 0xb]
push edi
push eax
lea ecx, [esi + 0xf8]
mov byte [ebp - 4], 0xb
call fcn.0040554d
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [esi + 0x120]
mov byte [ebp - 4], 0xc
call fcn.0040554d
lea eax, [ebp + 0xb]
push edi
push eax
lea ecx, [esi + 0x148]
mov byte [ebp - 4], 0xd
call fcn.0040554d
mov byte [ebp - 4], 0xe
push edi
lea eax, [ebp - 0xd]
lea ecx, [esi + 0x170]
push eax
call fcn.0040554d
lea eax, [ebp + 0xb]
push edi
push eax
lea ecx, [esi + 0x198]
mov byte [ebp - 4], 0xf
call fcn.0040554d
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [esi + 0x1c0]
mov byte [ebp - 4], 0x10
call fcn.0040554d
lea eax, [ebp + 0xb]
push edi
push eax
lea ecx, [esi + 0x1e8]
mov byte [ebp - 4], 0x11
call fcn.0040554d
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [esi + 0x210]
mov byte [ebp - 4], 0x12
call fcn.0040554d
lea eax, [ebp + 0xb]
push edi
push eax
lea ecx, [esi + 0x238]
mov byte [ebp - 4], 0x13
call fcn.0040554d
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [esi + 0x260]
mov byte [ebp - 4], 0x14
call fcn.0040554d
lea ecx, [esi + 0x288]
lea eax, [ebp + 0xb]
push ebx
push eax
mov byte [ebp - 4], 0x15
mov dword [ecx], 0x47b4b8
mov dword [ecx + 0x20], 0x47b4b0
call fcn.0040580f
lea ecx, [esi + 0x2b0]
lea eax, [ebp - 0xd]
push ebx
push eax
mov byte [ebp - 4], 0x16
mov dword [ecx], 0x47b4b8
mov dword [ecx + 0x20], 0x47b4b0
call fcn.0040580f
mov cl, byte [ebp + 0xb]
lea eax, [esi + 0x308]
mov dword [esi + 0x2e8], ebx
mov byte [esi + 0x2d9], bl
mov byte [esi + 0x2e0], bl
mov byte [esi + 0x2e1], bl
mov dword [esi + 0x2ec], ebx
mov byte [esi + 0x2f0], bl
mov byte [esi + 0x2f1], bl
mov byte [esi + 0x2f2], bl
mov byte [esi + 0x2f3], bl
mov byte [esi + 0x2f4], bl
mov byte [esi + 0x2f5], bl
mov byte [eax], cl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [ebp + 0xb]
push edi
mov dword [esi + 0x318], ebx
push eax
lea ecx, [esi + 0x320]
mov byte [ebp - 4], 0x18
mov dword [esi + 0x31c], ebx
call fcn.0040554d
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [esi + 0x348]
mov byte [ebp - 4], 0x19
call fcn.0040554d
lea eax, [ebp + 0xb]
push edi
push eax
lea ecx, [esi + 0x370]
mov byte [ebp - 4], 0x1a
call fcn.0040554d
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [esi + 0x398]
mov byte [ebp - 4], 0x1b
call fcn.0040554d
lea eax, [ebp + 0xb]
push edi
push eax
lea ecx, [esi + 0x3c8]
mov byte [ebp - 4], 0x1c
call fcn.0040554d
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [esi + 0x3f4]
mov byte [ebp - 4], 0x1d
call fcn.0040554d
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x41c]
mov byte [ebp - 4], 0x1e
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.0040d160
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x430]
push ebx
mov ecx, edi
mov eax, dword [eax + 4]
mov byte [ebp - 4], 0x1f
mov eax, dword [eax + esi + 0x10]
mov dword [edi + 0xc], 0x47bc04
mov dword [edi + 0x10], ebx
mov dword [ebp + 8], eax
mov dword [edi + 0x14], ebx
call fcn.0040d9e7
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [eax + edi + 0xc], ecx
mov al, byte [ebp + 0xb]
lea edi, [esi + 0x448]
push ebx
push ebx
mov ecx, edi
mov byte [ebp - 4], 0x20
mov byte [edi], al
call fcn.004069ff
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x460]
mov dword [esi + 0x454], ebx
mov dword [esi + 0x458], ebx
mov dword [esi + 0x45c], ebx
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ebp - 4], 0x21
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.0040d1e9
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x470], ebx
mov dword [esi + 0x474], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4