Function at 0x865154
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x33
push 0
push 0
dec ecx
jne 0x86515d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405e50
xor eax, eax
push ebp
push 0x865d19
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00411430
fstp qword [ebp - 0x28]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
mov edx, 0x865d30
call fcn.004121b4
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x1c]
call fcn.00405a3c
cmp dword [ebp - 4], 0
jne 0x8651c3
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x94]
call fcn.00405a3c
push dword [ebx + 0x84]
push 0x865d4c
push dword [ebx + 0x24]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405d64
lea eax, [ebp - 0x10]
call fcn.004059a4
lea eax, [ebp - 0x14]
call fcn.004059a4
lea eax, [ebp - 0x18]
call fcn.004059a4
lea ecx, [ebp - 0x34]
mov edx, 0x21
mov eax, dword [ebp - 0xc]
call fcn.004ab56c
mov eax, dword [ebp - 0x34]
mov edx, 0x865d58
call 0x405df8
jne 0x8652ae
push 0x865d84
push dword [ebp - 0xc]
push 0x865d84
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405d64
lea ecx, [ebp - 0x10]
mov edx, 0x22
mov eax, dword [ebp - 0xc]
call fcn.004ab56c
lea eax, [ebp - 0x14]
push eax
mov ecx, 4
mov edx, 0x24
mov eax, dword [ebp - 0xc]
call fcn.004ab5d0
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x865265
sub edi, 4
mov edi, dword [edi]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x86527c
mov eax, dword [ebp - 0x2c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x865293
mov eax, dword [ebp - 0x30]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
sub ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x30]
mov edx, 0x29
mov eax, dword [ebp - 0xc]
call fcn.004ab5d0
jmp 0x8652c9
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00405a3c
lea eax, [ebp - 0x14]
call fcn.004059a4
lea eax, [ebp - 0x18]
call fcn.004059a4
mov eax, dword [esi]
mov edx, 0x865d90
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x3c]
mov ecx, dword [ebx + 0x7c]
mov edx, 0x865da4
call fcn.00405ce8
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
mov edx, 0x23
call fcn.00551914
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
mov edx, 0x3c
mov eax, 0x865dc0
call fcn.0055194c
mov edx, dword [ebp - 0x40]
pop eax
call fcn.00405c9c
mov edx, dword [ebp - 0x38]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x48]
mov edx, 0x23
mov eax, dword [ebx + 0x88]
call fcn.00551914
push dword [ebp - 0x48]
lea ecx, [ebp - 0x4c]
mov edx, 0x28
mov eax, dword [0x8a3d04]
call fcn.00551914
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x50]
mov edx, 0x14
mov eax, dword [ebx + 0x88]
call fcn.00551930
push dword [ebp - 0x50]
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00405d64
mov edx, dword [ebp - 0x44]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x5c]
mov ecx, dword [ebx + 4]
mov edx, 0x865dec
call fcn.00405ce8
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x58]
mov edx, 0x1e
call fcn.00551914
push dword [ebp - 0x58]
lea ecx, [ebp - 0x60]
mov edx, 5
mov eax, 0x865e00
call fcn.00551914
push dword [ebp - 0x60]
lea eax, [ebp - 0x68]
mov ecx, dword [ebx + 4]
mov edx, 0x865e0c
call fcn.00405ce8
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x64]
mov edx, 0x21
call fcn.00551914
push dword [ebp - 0x64]
lea ecx, [ebp - 0x6c]
mov edx, 0xc
mov eax, 0x865e24
call fcn.00551914
push dword [ebp - 0x6c]
fild qword [ebx + 0x50]
fdiv dword [0x865e34]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x74]
mov eax, 0x865e40
call 0x410cc4
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x70]
mov edx, 0xf
call fcn.00551930
push dword [ebp - 0x70]
lea eax, [ebp - 0x54]
mov edx, 5
call fcn.00405d64
mov edx, dword [ebp - 0x54]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x80]
mov ecx, dword [ebx + 0xc]
mov edx, 0x865e54
call fcn.00405ce8
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x7c]
mov edx, 0x1e
call fcn.00551914
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x84]
mov edx, 5
mov eax, 0x865e00
call fcn.00551914
push dword [ebp - 0x84]
lea eax, [ebp - 0x8c]
mov ecx, dword [ebx + 8]
mov edx, 0x865e68
call fcn.00405ce8
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x88]
mov edx, 0x21
call fcn.00551914
push dword [ebp - 0x88]
lea ecx, [ebp - 0x90]
mov edx, 0xc
mov eax, 0x865e80
call fcn.00551914
push dword [ebp - 0x90]
fild qword [ebx + 0x38]
fdiv dword [0x865e34]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x98]
mov eax, 0x865e40
call 0x410cc4
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
mov edx, 0xf
call fcn.00551930
push dword [ebp - 0x94]
lea eax, [ebp - 0x78]
mov edx, 5
call fcn.00405d64
mov edx, dword [ebp - 0x78]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x865e98
push dword [ebx + 0x10]
push 0x865eac
push dword [ebx + 0x14]
lea eax, [ebp - 0xa4]
mov edx, 4
call fcn.00405d64
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa0]
mov edx, 0x1e
call fcn.00551914
push dword [ebp - 0xa0]
lea ecx, [ebp - 0xa8]
mov edx, 5
mov eax, 0x865e00
call fcn.00551914
push dword [ebp - 0xa8]
lea eax, [ebp - 0xb0]
mov ecx, dword [ebx + 0xc]
mov edx, 0x865eb8
call fcn.00405ce8
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xac]
mov edx, 0x21
call fcn.00551914
push dword [ebp - 0xac]
lea ecx, [ebp - 0xb4]
mov edx, 0xc
mov eax, 0x865ed0
call fcn.00551914
push dword [ebp - 0xb4]
fild qword [ebx + 0x40]
fdiv dword [0x865e34]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0xbc]
mov eax, 0x865e40
call 0x410cc4
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xb8]
mov edx, 0xf
call fcn.00551930
push dword [ebp - 0xb8]
lea eax, [ebp - 0x9c]
mov edx, 5
call fcn.00405d64
mov edx, dword [ebp - 0x9c]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0xcc]
mov edx, 0x10
mov eax, dword [ebx + 0x90]
call fcn.004ab56c
mov ecx, dword [ebp - 0xcc]
lea eax, [ebp - 0xc8]
mov edx, 0x865ee8
call fcn.00405ce8
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
mov edx, 0x1e
call fcn.00551914
push dword [ebp - 0xc4]
lea ecx, [ebp - 0xd0]
mov edx, 5
mov eax, 0x865e00
call fcn.00551914
push dword [ebp - 0xd0]
push 0x865efc
push dword [ebx + 0x10]
push 0x865eac
push dword [ebx + 0x14]
lea eax, [ebp - 0xd8]
mov edx, 4
call fcn.00405d64
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xd4]
mov edx, 0x21
call fcn.00551914
push dword [ebp - 0xd4]
lea ecx, [ebp - 0xdc]
mov edx, 0xc
mov eax, 0x865f14
call fcn.00551914
push dword [ebp - 0xdc]
fild qword [ebx + 0x58]
fdiv dword [0x865e34]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0xe4]
mov eax, 0x865e40
call 0x410cc4
mov eax, dword [ebp - 0xe4]
lea ecx, [ebp - 0xe0]
mov edx, 0xf
call fcn.00551930
push dword [ebp - 0xe0]
lea eax, [ebp - 0xc0]
mov edx, 5
call fcn.00405d64
mov edx, dword [ebp - 0xc0]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0xf4]
push eax
mov ecx, 0x10
mov edx, 0x11
mov eax, dword [ebx + 0x90]
call fcn.004ab5d0
mov ecx, dword [ebp - 0xf4]
lea eax, [ebp - 0xf0]
mov edx, 0x865f2c
call fcn.00405ce8
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xec]
mov edx, 0x1e
call fcn.00551914
push dword [ebp - 0xec]
lea ecx, [ebp - 0xf8]
mov edx, 5
mov eax, 0x865e00
call fcn.00551914
push dword [ebp - 0xf8]
lea ecx, [ebp - 0xfc]
mov edx, 0x21
mov eax, 0x865f40
call fcn.00551914
push dword [ebp - 0xfc]
lea ecx, [ebp - 0x100]
mov edx, 0xc
mov eax, 0x865f54
call fcn.00551914
push dword [ebp - 0x100]
fild qword [ebx + 0x48]
fdiv dword [0x865e34]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x108]
mov eax, 0x865e40
call 0x410cc4
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov edx, 0xf
call fcn.00551930
push dword [ebp - 0x104]
lea eax, [ebp - 0xe8]
mov edx, 5
call fcn.00405d64
mov edx, dword [ebp - 0xe8]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x865f6c
push dword [ebx + 0x6c]
push dword [ebx + 0x68]
lea eax, [ebp - 0x118]
call fcn.00552050
push dword [ebp - 0x118]
push 0x865f84
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00405d64
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
mov edx, 0x1e
call fcn.00551914
push dword [ebp - 0x110]
lea ecx, [ebp - 0x11c]
mov edx, 5
mov eax, 0x865e00
call fcn.00551914
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x120]
mov edx, 0x21
mov eax, dword [ebx + 0x90]
call fcn.00551914
push dword [ebp - 0x120]
lea ecx, [ebp - 0x124]
mov edx, 0xc
mov eax, 0x865f90
call fcn.00551914
push dword [ebp - 0x124]
fild qword [ebx + 0x30]
fdiv dword [0x865e34]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x12c]
mov eax, 0x865e40
call 0x410cc4
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
mov edx, 0xf
call fcn.00551930
push dword [ebp - 0x128]
lea eax, [ebp - 0x10c]
mov edx, 5
call fcn.00405d64
mov edx, dword [ebp - 0x10c]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x134]
mov edx, 0x23
xor eax, eax
call fcn.00551914
push dword [ebp - 0x134]
push 0x865fa8
lea ecx, [ebp - 0x138]
mov edx, 0xc
mov eax, 0x865fb4
call fcn.00551914
push dword [ebp - 0x138]
fild qword [ebx + 0x68]
fdiv dword [0x865e34]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x144]
mov eax, 0x865e40
call 0x410cc4
mov ecx, dword [ebp - 0x144]
lea eax, [ebp - 0x140]
mov edx, 0x865fcc
call fcn.00405ce8
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x13c]
mov edx, 0x15
call fcn.00551914
push dword [ebp - 0x13c]
push 0x865fd8
lea ecx, [ebp - 0x148]
mov edx, 0xc
mov eax, 0x865fe4
call fcn.00551914
push dword [ebp - 0x148]
lea ecx, [ebp - 0x14c]
mov edx, 0xf
mov eax, dword [ebx + 0x74]
call fcn.00551930
push dword [ebp - 0x14c]
lea eax, [ebp - 0x130]
mov edx, 7
call fcn.00405d64
mov edx, dword [ebp - 0x130]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push dword [ebp - 4]
push 0x865eac
push dword [ebp - 8]
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.00405d64
mov eax, dword [ebp - 0x154]
lea ecx, [ebp - 0x150]
mov edx, 0x23
call fcn.00551914
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x158]
mov edx, 0x3c
mov eax, 0x865ffc
call fcn.00551914
mov edx, dword [ebp - 0x158]
pop eax
call fcn.00405c9c
mov edx, dword [ebp - 0x150]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x164]
mov edx, 0x10
mov eax, dword [ebx + 0x2c]
call fcn.004ab56c
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x160]
mov edx, 0x23
call fcn.00551914
push dword [ebp - 0x160]
push 0x865fa8
push 0x866014
push dword [ebx + 0x70]
push 0x866020
push 0x865fd8
lea eax, [ebp - 0x15c]
mov edx, 6
call fcn.00405d64
mov edx, dword [ebp - 0x15c]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x16c]
push eax
mov ecx, 0x10
mov edx, 0x11
mov eax, dword [ebx + 0x2c]
call fcn.004ab5d0
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x168]
mov edx, 0x23
call fcn.00551914
mov edx, dword [ebp - 0x168]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x170]
mov edx, 0x23
mov eax, 0x865e00
call fcn.00551914
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x174]
mov edx, 0x3c
mov eax, dword [ebp - 0x10]
call fcn.0055194c
mov edx, dword [ebp - 0x174]
pop eax
call fcn.00405c9c
mov edx, dword [ebp - 0x170]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x86602c
lea ecx, [ebp - 0x17c]
mov edx, 0x23
mov eax, 0x865e00
call fcn.00551914
push dword [ebp - 0x17c]
lea ecx, [ebp - 0x180]
mov edx, 0x3c
mov eax, dword [ebp - 0x14]
call fcn.0055194c
push dword [ebp - 0x180]
lea eax, [ebp - 0x178]
mov edx, 3
call fcn.00405d64
mov edx, dword [ebp - 0x178]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x184]
mov edx, 0x23
mov eax, 0x865e00
call fcn.00551914
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x188]
mov edx, 0x3c
mov eax, dword [ebp - 0x18]
call fcn.0055194c
mov edx, dword [ebp - 0x188]
pop eax
call fcn.00405c9c
mov edx, dword [ebp - 0x184]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x18c]
mov edx, 0x23
mov eax, 0x865e00
call fcn.00551914
lea eax, [ebp - 0x18c]
push eax
push dword [ebp - 4]
push 0x865eac
push dword [ebx + 0x7c]
push 0x865eac
push dword [ebp - 8]
lea eax, [ebp - 0x194]
mov edx, 5
call fcn.00405d64
mov eax, dword [ebp - 0x194]
lea ecx, [ebp - 0x190]
mov edx, 0x3c
call fcn.0055194c
mov edx, dword [ebp - 0x190]
pop eax
call fcn.00405c9c
mov edx, dword [ebp - 0x18c]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x866038
lea ecx, [ebp - 0x19c]
mov edx, 0x23
mov eax, 0x865e00
call fcn.00551914
push dword [ebp - 0x19c]
lea ecx, [ebp - 0x1a0]
mov edx, 0x3c
mov eax, dword [ebx + 0x2c]
call fcn.0055194c
push dword [ebp - 0x1a0]
lea eax, [ebp - 0x198]
mov edx, 3
call fcn.00405d64
mov edx, dword [ebp - 0x198]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x865d20
lea eax, [ebp - 0x1a0]
mov edx, 0x5c
call fcn.004059c8
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.004059c8
ret