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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x487c1d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4882d7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x10], 0
sete byte [ebp - 0x4d]
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x24]
call fcn.00458834
mov eax, dword [ebp - 0x14]
call fcn.004045c4
test eax, eax
jne 0x487c6b
mov dword [ebp - 0xc], 0x1f0b
jmp 0x4882af
mov dl, 1
mov eax, dword [0x45c9f8]
call fcn.0045d3f4
mov dword [ebp - 0x3c], eax
xor eax, eax
push ebp
push 0x48822d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x3c]
mov byte [eax + 4], 0x30
mov dl, 1
mov eax, dword [ebp - 0x3c]
call fcn.0045dae4
mov edx, eax
mov eax, dword [ebp - 0x3c]
call fcn.0045db88
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov byte [eax + 4], 0x30
xor edx, edx
mov eax, dword [ebp - 0x40]
call fcn.0045dae4
mov edx, eax
mov eax, dword [ebp - 0x40]
call fcn.0045db88
mov esi, eax
mov byte [esi + 4], 6
mov edx, dword [0x4e0b18]
mov eax, esi
call fcn.0045cde4
mov dl, 1
mov eax, dword [ebp - 0x40]
call fcn.0045dae4
mov edx, eax
mov eax, dword [ebp - 0x40]
call fcn.0045db88
mov esi, eax
mov byte [esi + 4], 0xa0
mov dl, 1
mov eax, esi
call fcn.0045dae4
mov edx, eax
mov eax, esi
call fcn.0045db88
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov byte [eax + 4], 0x30
mov dl, 1
mov eax, dword [ebp - 0x44]
call fcn.0045dae4
mov edx, eax
mov eax, dword [ebp - 0x44]
call fcn.0045db88
mov edi, eax
mov byte [edi + 4], 0x30
xor edx, edx
mov eax, edi
call fcn.0045dae4
mov edx, eax
mov eax, edi
call fcn.0045db88
mov esi, eax
mov byte [esi + 4], 6
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.0045cde4
mov dl, 1
mov eax, edi
call fcn.0045dae4
mov edx, eax
mov eax, edi
call fcn.0045db88
mov edi, eax
lea ecx, [ebp - 0x1c]
mov eax, dword [ebx + 0x2c]
mov edx, 8
call fcn.00451f48
mov edx, dword [ebx + 0x1c]
mov ecx, edi
mov eax, dword [ebp - 0x1c]
call fcn.00484b60
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
mov edx, dword [ebx + 0x24]
mov eax, ebx
call fcn.00486fcc
test al, al
jne 0x487d9d
mov dword [ebp - 0xc], 0x1f0c
call fcn.00403d20
jmp 0x4882af
cmp byte [ebp - 0x4d], 0
jne 0x487de7
push 1
push 0x7101
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.004868a0
push 2
push 0x7101
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.004868a0
mov dl, 1
mov eax, dword [0x45c9f8]
call fcn.0045d3f4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov byte [eax + 4], 0x30
xor edx, edx
mov eax, dword [ebp - 0x48]
call fcn.0045dae4
mov edx, eax
mov eax, dword [ebp - 0x48]
call fcn.0045db88
mov esi, eax
mov byte [esi + 4], 2
mov edx, 0x4882f4
mov eax, esi
call fcn.0045cde4
mov dl, 1
mov eax, dword [ebp - 0x48]
call fcn.0045dae4
mov edx, eax
mov eax, dword [ebp - 0x48]
call fcn.0045db88
mov esi, eax
mov byte [esi + 4], 0x30
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.00458a78
mov eax, dword [ebp - 0x14]
call fcn.004045c4
test eax, eax
jne 0x487e65
mov dword [ebp - 0xc], 0x1f0f
call fcn.00403d20
jmp 0x4882af
lea eax, [ebp - 0x18]
xor edx, edx
call fcn.00404950
cmp dword [ebp + 8], 4
jne 0x487f1c
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x38]
call fcn.00404950
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x34]
call fcn.00404950
push 0
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00489160
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x38]
call fcn.00404950
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x34]
call fcn.00404950
lea eax, [ebp - 0x28]
call fcn.0040481c
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
call fcn.0040481c
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00489160
test al, al
jne 0x487f04
mov dword [ebp - 0xc], 0x1f0c
call fcn.00403d20
jmp 0x4882af
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x38]
call fcn.00404950
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x34]
call fcn.00404950
jmp 0x487f7e
cmp dword [ebp + 8], 0
je 0x487f2e
cmp dword [ebp + 8], 0xb
je 0x487f2e
cmp dword [ebp + 8], 0xc
jne 0x487f56
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
call fcn.00404950
cmp byte [ebp - 0x4d], 0
jne 0x487f7e
lea eax, [ebp - 0x28]
call fcn.0040481c
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00402c74
jmp 0x487f7e
cmp dword [ebp + 8], 6
jne 0x487f6d
mov dword [ebp - 0xc], 0x1f0f
call fcn.00403d20
jmp 0x4882af
mov dword [ebp - 0xc], 0x1f0f
call fcn.00403d20
jmp 0x4882af
push 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00497fd8
xor edx, edx
mov eax, dword [ebp - 0x48]
call fcn.0045dae4
mov edx, eax
mov eax, dword [ebp - 0x48]
call fcn.0045db88
mov esi, eax
mov byte [esi + 4], 4
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x28]
call fcn.00457614
mov edx, dword [ebp - 0x54]
mov eax, esi
call fcn.0045cde4
mov dl, 1
mov eax, dword [ebp - 0x48]
call fcn.0045dae4
mov edx, eax
mov eax, dword [ebp - 0x48]
call fcn.0045db88
mov esi, eax
mov dl, 1
mov eax, dword [0x479da4]
call fcn.00479e04
mov dword [ebp - 0x4c], eax
xor eax, eax
push ebp
push 0x4881c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 1
mov eax, dword [ebp - 0x4c]
call fcn.00479f0c
mov ecx, 0x488300
xor edx, edx
mov eax, dword [ebp - 0x4c]
call fcn.00479eb8
xor edx, edx
mov eax, dword [ebp - 0x4c]
call fcn.00479ee0
push eax
push 0x488314
lea eax, [ebp - 0x5c]
mov edi, dword [ebx + 0x30]
mov edx, edi
shr edx, 0x18
and edx, 0xff
call fcn.004044ec
push dword [ebp - 0x5c]
lea eax, [ebp - 0x60]
mov edx, edi
shr edx, 0x10
and edx, 0xff
call fcn.004044ec
push dword [ebp - 0x60]
lea eax, [ebp - 0x64]
mov edx, edi
shr edx, 8
and edx, 0xff
call fcn.004044ec
push dword [ebp - 0x64]
lea eax, [ebp - 0x68]
mov edx, edi
and edx, 0xff
call fcn.004044ec
push dword [ebp - 0x68]
lea eax, [ebp - 0x58]
mov edx, 5
call fcn.00404684
mov edx, dword [ebp - 0x58]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov cl, 0x31
mov edx, dword [ebp - 0x4c]
mov eax, esi
call fcn.00479fbc
mov byte [esi + 4], 0xa0
xor eax, eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x34]
call fcn.00404950
lea ecx, [ebp - 0x34]
xor edx, edx
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
call dword [esi + 0xc]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x34]
call fcn.00404950
lea eax, [ebp - 0x28]
call fcn.0040481c
mov edx, eax
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
call dword [esi + 0xc]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x34]
call fcn.00404950
mov eax, dword [ebp - 0x48]
call fcn.004034ec
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x30]
lea eax, [ebp - 0x18]
call fcn.00404950
mov eax, dword [ebp - 0x18]
call fcn.004045c4
mov dword [ebp - 0x34], eax
cmp byte [ebp - 0x4d], 0
jne 0x488156
lea eax, [ebp - 0x18]
call fcn.0040481c
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebx + 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004045c4
push eax
lea eax, [ebp - 0x28]
call fcn.0040481c
mov edx, eax
mov eax, ebx
pop ecx
call fcn.00488a98
test al, al
jne 0x488156
mov dword [ebp - 0xc], 0x1f0c
call fcn.00403d20
call fcn.00403d20
jmp 0x4882af
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x34]
call fcn.00404950
xor edx, edx
mov eax, dword [ebp - 0x44]
call fcn.0045dae4
mov edx, eax
mov eax, dword [ebp - 0x44]
call fcn.0045db88
mov esi, eax
mov byte [esi + 4], 4
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x18]
call fcn.00457614
mov edx, dword [ebp - 0x6c]
mov eax, esi
call fcn.0045cde4
mov dl, 1
mov eax, dword [ebp - 0x40]
call fcn.0045dae4
mov edx, eax
mov eax, dword [ebp - 0x40]
call fcn.0045db88
mov esi, eax
mov cl, 0x31
mov edx, dword [ebp - 0x4c]
mov eax, esi
call fcn.00479fbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4881cf
mov eax, dword [ebp - 0x4c]
call fcn.004034ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4882de
lea eax, [ebp - 0x6c]
mov edx, 7
call fcn.00404328
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.00404328
ret