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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], 0
xor esi, esi
push ebp
push 0x50d289
push dword fs:[esi]
mov dword fs:[esi], esp
mov eax, dword [0x586404]
mov eax, dword [eax]
mov eax, dword [eax + 0x5d0]
mov ebx, eax
dec ebx
sub ebx, 0xbf
jb 0x50d107
je 0x50d068
dec ebx
jne 0x50d27f
mov eax, 0xd8
mov ebx, dword [0x5863a0]
mov ebx, dword [ebx]
mov esi, dword [0x5865cc]
add ebx, dword [esi]
mov esi, edx
imul esi, eax
add ebx, esi
mov eax, ebx
lea ebx, [eax + 8]
movzx ebx, word [ebx]
cmp bx, 0xffff
jne 0x50cffe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50d293
movzx ebx, bx
mov dword [ecx], ebx
mov dword [ecx + 4], edx
lea edx, [eax + 0x10]
movzx edx, byte [edx]
mov dword [ecx + 0x24], edx
lea edx, [eax + 0x12]
movzx edx, word [edx]
mov dword [ecx + 0xc], edx
lea edx, [eax + 0x14]
movzx edx, word [edx]
mov dword [ecx + 0x2c], edx
lea edx, [eax + 0x24]
movzx edx, word [edx]
mov dword [ecx + 8], edx
lea edx, [eax + 0x1e]
mov edx, dword [edx]
mov dword [ecx + 0x14], edx
lea edx, [eax + 0x22]
movzx edx, byte [edx]
mov byte [ecx + 0x18], dl
lea edx, [eax + 0x2f]
movzx edx, byte [edx]
mov dword [ecx + 0x1c], edx
lea edx, [eax + 0x34]
cmp byte [edx], 0x80
sete dl
mov byte [ecx + 0x28], dl
lea edx, [eax + 0x94]
movzx edx, byte [edx]
mov byte [ecx + 0x10], dl
mov dword [ecx + 0x30], eax
mov byte [ebp - 1], 1
jmp 0x50d27f
mov eax, 0x5c
mov ebx, dword [0x5863a0]
mov ebx, dword [ebx]
mov esi, dword [0x5865cc]
add ebx, dword [esi]
mov esi, edx
imul esi, eax
add ebx, esi
mov eax, ebx
lea ebx, [eax + 4]
movzx ebx, word [ebx]
cmp bx, 0xffff
jne 0x50d0a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50d293
movzx ebx, bx
mov dword [ecx], ebx
mov dword [ecx + 4], edx
lea edx, [eax + 0xc]
movzx edx, byte [edx]
mov dword [ecx + 0x24], edx
lea edx, [eax + 0xe]
movzx edx, word [edx]
mov dword [ecx + 0xc], edx
lea edx, [eax + 0x10]
movzx edx, word [edx]
mov dword [ecx + 0x2c], edx
lea edx, [eax + 0x18]
movzx edx, word [edx]
mov dword [ecx + 8], edx
lea edx, [eax + 0x1e]
mov edx, dword [edx]
mov dword [ecx + 0x14], edx
lea edx, [eax + 0x22]
movzx edx, byte [edx]
mov byte [ecx + 0x18], dl
lea edx, [eax + 0x23]
movzx edx, byte [edx]
mov dword [ecx + 0x1c], edx
lea edx, [eax + 0x28]
cmp byte [edx], 0x80
sete dl
mov byte [ecx + 0x28], dl
lea edx, [eax + 0x29]
movzx edx, byte [edx]
mov byte [ecx + 0x10], dl
mov dword [ecx + 0x30], eax
mov byte [ebp - 1], 1
jmp 0x50d27f
mov ebx, dword [0x586404]
cmp eax, 0x81
jne 0x50d11e
mov eax, 0x34
jmp 0x50d1d3
mov ebx, dword [0x586404]
cmp eax, 0x9e
jne 0x50d1ce
mov eax, 0x4c
mov ebx, dword [0x5863a0]
mov ebx, dword [ebx]
mov esi, dword [0x5865cc]
add ebx, dword [esi]
mov esi, edx
imul esi, eax
add ebx, esi
mov eax, ebx
lea ebx, [eax + 4]
movzx ebx, word [ebx]
cmp bx, 0xffff
jne 0x50d167
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50d293
movzx ebx, bx
mov dword [ecx], ebx
mov dword [ecx + 4], edx
lea edx, [eax + 0x10]
movzx edx, byte [edx]
mov dword [ecx + 0x24], edx
lea edx, [eax + 0x12]
movzx edx, word [edx]
mov dword [ecx + 0xc], edx
lea edx, [eax + 0x14]
movzx edx, word [edx]
mov dword [ecx + 0x2c], edx
lea edx, [eax + 0x18]
movzx edx, word [edx]
mov dword [ecx + 8], edx
lea edx, [eax + 0x1c]
mov edx, dword [edx]
mov dword [ecx + 0x14], edx
lea edx, [eax + 0x20]
movzx edx, byte [edx]
mov byte [ecx + 0x18], dl
lea edx, [eax + 0x21]
movzx edx, byte [edx]
mov dword [ecx + 0x1c], edx
mov byte [ecx + 0x28], 0
lea edx, [eax + 0x34]
movzx edx, byte [edx]
mov byte [ecx + 0x10], dl
mov dword [ecx + 0x30], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50d293
mov eax, 0x38
mov ebx, dword [0x5863a0]
mov ebx, dword [ebx]
mov esi, dword [0x5865cc]
add ebx, dword [esi]
mov esi, edx
imul esi, eax
add ebx, esi
mov eax, ebx
lea ebx, [eax + 4]
movzx ebx, word [ebx]
cmp bx, 0xffff
jne 0x50d206
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50d293
movzx ebx, bx
mov dword [ecx], ebx
mov dword [ecx + 4], edx
lea edx, [eax + 0xc]
movzx edx, byte [edx]
mov dword [ecx + 0x24], edx
lea edx, [eax + 0xe]
movzx edx, word [edx]
mov dword [ecx + 0xc], edx
lea edx, [eax + 0x10]
movzx edx, word [edx]
mov dword [ecx + 0x2c], edx
lea edx, [eax + 0x14]
movzx edx, word [edx]
mov dword [ecx + 8], edx
lea edx, [eax + 0x18]
mov edx, dword [edx]
mov dword [ecx + 0x14], edx
lea edx, [eax + 0x1c]
movzx edx, byte [edx]
mov byte [ecx + 0x18], dl
lea edx, [eax + 0x1d]
movzx edx, byte [edx]
mov dword [ecx + 0x1c], edx
mov byte [ecx + 0x28], 0
mov edx, dword [0x586404]
mov edx, dword [edx]
cmp dword [edx + 0x5d0], 0x81
jne 0x50d26f
lea edx, [eax + 0x1e]
movzx edx, byte [edx]
mov byte [ecx + 0x10], dl
jmp 0x50d278
lea edx, [eax + 0x23]
movzx edx, byte [edx]
mov byte [ecx + 0x10], dl
mov dword [ecx + 0x30], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50d293
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret