Function at 0x805490
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get number of processors
Get process heap flags
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x33
push 0
push 0
dec ecx
jne 0x805498
push ebx
push esi
mov ebx, 0x96d438
mov esi, 0x96d504
xor eax, eax
push ebp
push 0x805ad9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [0x96d5d4], eax
mov eax, 0x96d5d8
mov ecx, 0xff
mov edx, pe_nt_image_headers32
call fcn.00408280
xor edx, edx
mov eax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx ecx, byte [eax]
mov byte [ecx + 0x96d5d8], dl
inc edx
inc eax
cmp edx, 0x40
jne 0x8054db
mov byte [0x96d615], 0xfe
call fcn.008051e4
lea edx, [ebp - 0xcc]
mov eax, 0x805af4
call fcn.00804ef0
lea edx, [ebp - 0xcc]
mov eax, ebx
mov ecx, dword [0x804e54]
call fcn.0040dd74
mov eax, ebx
mov edx, 0x805b08
call fcn.0040bd48
mov byte [ebx + 4], 0
mov byte [ebx + 5], 2
mov byte [ebx + 6], 0x2f
mov byte [ebx + 7], 0x3a
lea eax, [ebx + 8]
mov edx, 0x805b18
call fcn.0040bd48
lea eax, [ebx + 0xc]
mov edx, 0x805b28
call fcn.0040bd48
lea eax, [ebx + 0x10]
mov edx, 0x805b40
call fcn.0040bd48
lea eax, [ebx + 0x14]
mov edx, 0x805b60
call fcn.0040bd48
lea eax, [ebx + 0x18]
mov edx, 0x805b70
call fcn.0040bd48
lea eax, [ebx + 0x1c]
mov edx, 0x805b80
call fcn.0040bd48
lea eax, [ebx + 0x20]
mov edx, 0x805b98
call fcn.0040bd48
lea eax, [ebx + 0x24]
mov edx, 0x805bb4
call fcn.0040bd48
lea eax, [ebx + 0x54]
mov edx, 0x805bc4
call fcn.0040bd48
lea eax, [ebx + 0x28]
mov edx, 0x805bd8
call fcn.0040bd48
lea eax, [ebx + 0x58]
mov edx, 0x805be8
call fcn.0040bd48
lea eax, [ebx + 0x2c]
mov edx, 0x805c00
call fcn.0040bd48
lea eax, [ebx + 0x5c]
mov edx, 0x805c10
call fcn.0040bd48
lea eax, [ebx + 0x30]
mov edx, 0x805c24
call fcn.0040bd48
lea eax, [ebx + 0x60]
mov edx, 0x805c34
call fcn.0040bd48
lea eax, [ebx + 0x34]
mov edx, 0x805c48
call fcn.0040bd48
lea eax, [ebx + 0x64]
mov edx, 0x805c48
call fcn.0040bd48
lea eax, [ebx + 0x38]
mov edx, 0x805c58
call fcn.0040bd48
lea eax, [ebx + 0x68]
mov edx, 0x805c68
call fcn.0040bd48
lea eax, [ebx + 0x3c]
mov edx, 0x805c7c
call fcn.0040bd48
lea eax, [ebx + 0x6c]
mov edx, 0x805c8c
call fcn.0040bd48
lea eax, [ebx + 0x40]
mov edx, 0x805ca0
call fcn.0040bd48
lea eax, [ebx + 0x70]
mov edx, 0x805cb0
call fcn.0040bd48
lea eax, [ebx + 0x44]
mov edx, 0x805cc4
call fcn.0040bd48
lea eax, [ebx + 0x74]
mov edx, 0x805cd4
call fcn.0040bd48
lea eax, [ebx + 0x48]
mov edx, 0x805cec
call fcn.0040bd48
lea eax, [ebx + 0x78]
mov edx, 0x805cfc
call fcn.0040bd48
lea eax, [ebx + 0x4c]
mov edx, 0x805d10
call fcn.0040bd48
lea eax, [ebx + 0x7c]
mov edx, 0x805d20
call fcn.0040bd48
lea eax, [ebx + 0x50]
mov edx, 0x805d38
call fcn.0040bd48
lea eax, [ebx + 0x80]
mov edx, 0x805d48
call fcn.0040bd48
lea eax, [ebx + 0x84]
mov edx, 0x805d60
call fcn.0040bd48
lea eax, [ebx + 0xa0]
mov edx, 0x805d70
call fcn.0040bd48
lea eax, [ebx + 0x88]
mov edx, 0x805d84
call fcn.0040bd48
lea eax, [ebx + 0xa4]
mov edx, 0x805d94
call fcn.0040bd48
lea eax, [ebx + 0x8c]
mov edx, 0x805da8
call fcn.0040bd48
lea eax, [ebx + 0xa8]
mov edx, 0x805db8
call fcn.0040bd48
lea eax, [ebx + 0x90]
mov edx, 0x805dcc
call fcn.0040bd48
lea eax, [ebx + 0xac]
mov edx, 0x805ddc
call fcn.0040bd48
lea eax, [ebx + 0x94]
mov edx, 0x805df4
call fcn.0040bd48
lea eax, [ebx + 0xb0]
mov edx, 0x805e04
call fcn.0040bd48
lea eax, [ebx + 0x98]
mov edx, 0x805e1c
call fcn.0040bd48
lea eax, [ebx + 0xb4]
mov edx, 0x805e2c
call fcn.0040bd48
lea eax, [ebx + 0x9c]
mov edx, 0x805e40
call fcn.0040bd48
lea eax, [ebx + 0xb8]
mov edx, 0x805e50
call fcn.0040bd48
lea eax, [ebx + 0xc0]
mov edx, 0x805e68
call fcn.0040bd48
mov byte [ebx + 0xc4], 0x2e
mov word [ebx + 0xc6], 0x32
mov byte [ebx + 0xc8], 0
lea edx, [ebp - 0x198]
mov eax, 0x805e78
call fcn.0043683c
lea edx, [ebp - 0x198]
mov eax, esi
mov ecx, dword [0x42a6a0]
call fcn.0040dd74
mov eax, esi
mov edx, 0x805e90
call fcn.0040bca4
mov byte [esi + 4], 0
mov byte [esi + 5], 2
mov word [esi + 6], 0x2f
mov word [esi + 8], 0x3a
mov word [esi + 0xa], 0x3b
lea eax, [esi + 0xc]
mov edx, 0x805ea0
call fcn.0040bca4
lea eax, [esi + 0x10]
mov edx, 0x805ec0
call fcn.0040bca4
lea eax, [esi + 0x14]
mov edx, 0x805ef4
call fcn.0040bca4
lea eax, [esi + 0x18]
mov edx, 0x805f08
call fcn.0040bca4
lea eax, [esi + 0x1c]
mov edx, 0x805f1c
call fcn.0040bca4
lea eax, [esi + 0x20]
mov edx, 0x805f3c
call fcn.0040bca4
lea eax, [esi + 0x24]
mov edx, 0x805f64
call fcn.0040bca4
lea eax, [esi + 0x54]
mov edx, 0x805f78
call fcn.0040bca4
lea eax, [esi + 0x28]
mov edx, 0x805f94
call fcn.0040bca4
lea eax, [esi + 0x58]
mov edx, 0x805fa8
call fcn.0040bca4
lea eax, [esi + 0x2c]
mov edx, 0x805fc8
call fcn.0040bca4
lea eax, [esi + 0x5c]
mov edx, 0x805fdc
call fcn.0040bca4
lea eax, [esi + 0x30]
mov edx, 0x805ff4
call fcn.0040bca4
lea eax, [esi + 0x60]
mov edx, 0x806008
call fcn.0040bca4
lea eax, [esi + 0x34]
mov edx, 0x806020
call fcn.0040bca4
lea eax, [esi + 0x64]
mov edx, 0x806020
call fcn.0040bca4
lea eax, [esi + 0x38]
mov edx, 0x806034
call fcn.0040bca4
lea eax, [esi + 0x68]
mov edx, 0x806048
call fcn.0040bca4
lea eax, [esi + 0x3c]
mov edx, 0x806060
call fcn.0040bca4
lea eax, [esi + 0x6c]
mov edx, 0x806074
call fcn.0040bca4
lea eax, [esi + 0x40]
mov edx, 0x80608c
call fcn.0040bca4
lea eax, [esi + 0x70]
mov edx, 0x8060a0
call fcn.0040bca4
lea eax, [esi + 0x44]
mov edx, 0x8060bc
call fcn.0040bca4
lea eax, [esi + 0x74]
mov edx, 0x8060d0
call fcn.0040bca4
lea eax, [esi + 0x48]
mov edx, 0x8060f0
call fcn.0040bca4
lea eax, [esi + 0x78]
mov edx, 0x806104
call fcn.0040bca4
lea eax, [esi + 0x4c]
mov edx, 0x806120
call fcn.0040bca4
lea eax, [esi + 0x7c]
mov edx, 0x806134
call fcn.0040bca4
lea eax, [esi + 0x50]
mov edx, 0x806154
call fcn.0040bca4
lea eax, [esi + 0x80]
mov edx, 0x806168
call fcn.0040bca4
lea eax, [esi + 0x84]
mov edx, 0x806188
call fcn.0040bca4
lea eax, [esi + 0xa0]
mov edx, 0x80619c
call fcn.0040bca4
lea eax, [esi + 0x88]
mov edx, 0x8061b8
call fcn.0040bca4
lea eax, [esi + 0xa4]
mov edx, 0x8061cc
call fcn.0040bca4
lea eax, [esi + 0x8c]
mov edx, 0x8061e8
call fcn.0040bca4
lea eax, [esi + 0xa8]
mov edx, 0x8061fc
call fcn.0040bca4
lea eax, [esi + 0x90]
mov edx, 0x806218
call fcn.0040bca4
lea eax, [esi + 0xac]
mov edx, 0x80622c
call fcn.0040bca4
lea eax, [esi + 0x94]
mov edx, 0x80624c
call fcn.0040bca4
lea eax, [esi + 0xb0]
mov edx, 0x806260
call fcn.0040bca4
lea eax, [esi + 0x98]
mov edx, 0x806280
call fcn.0040bca4
lea eax, [esi + 0xb4]
mov edx, 0x806294
call fcn.0040bca4
lea eax, [esi + 0x9c]
mov edx, 0x8062b0
call fcn.0040bca4
lea eax, [esi + 0xb8]
mov edx, 0x8062c4
call fcn.0040bca4
mov word [esi + 0xc0], 0x2c
mov word [esi + 0xc2], 0x2e
mov word [esi + 0xc4], 0x32
mov byte [esi + 0xc6], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x805ae0
lea eax, [ebp - 0x198]
mov edx, dword [0x42a6a0]
call fcn.0040d5d0
lea eax, [ebp - 0xcc]
mov edx, dword [0x804e54]
call fcn.0040d5d0
pop eax
jmp eax