Function at 0x58e358
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x58e360
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x58e983
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xe4]
test eax, eax
je 0x58e95b
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0xc]
dec eax
test eax, eax
jl 0x58e94d
inc eax
mov dword [ebp - 8], eax
xor ebx, ebx
mov dl, 1
mov eax, dword [0x57fd48]
call fcn.0057ffcc
mov esi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov dword [eax + 0x254], esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xe4]
mov edx, ebx
call fcn.0057ea64
mov edx, dword [0x57fd48]
call fcn.00403498
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 8]
test ebx, ebx
jne 0x58e44c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x254]
cmp dword [eax + 0x2c], 0
jle 0x58e44c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x230], 0
je 0x58e44c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x100]
xor ecx, ecx
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x254]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax + 0x100]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x234]
call fcn.004157d0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x254]
cmp byte [eax + 0x41], 2
jne 0x58e46b
mov edx, dword [ebp + 8]
call fcn.00403308
jmp 0x58e943
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov esi, dword [eax + 0x254]
cmp word [esi + 0x22], 0
jbe 0x58e4ab
mov eax, dword [ebp + 8]
cmp dword [esi + 0x3c], 0
jne 0x58e4ab
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, ebx
call fcn.00588cf0
mov eax, dword [ebp - 0x10]
call fcn.005824e0
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, esi
call fcn.00580a34
mov byte [ebp - 1], 1
mov byte [ebp - 3], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x260], 0
je 0x58e54c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x254]
cmp byte [eax + 0x42], 0
je 0x58e54c
mov byte [ebp - 3], 1
mov byte [ebp - 2], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov esi, dword [eax + 0x254]
mov byte [esi + 0x42], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp word [eax + 0x1f2], 0
je 0x58e533
lea eax, [ebp - 2]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x34]
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x38]
lea eax, [ebp - 0x14]
call fcn.0040433c
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov esi, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov eax, dword [esi + 0x1f4]
call dword [esi + 0x1f0]
cmp byte [ebp - 2], 0
jne 0x58e87f
mov eax, dword [ebp + 8]
inc dword [eax - 4]
mov byte [ebp - 1], 0
jmp 0x58e87f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x58e87f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x58e87f
inc eax
mov dword [ebp - 0xc], eax
xor esi, esi
push ebp
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
call fcn.0058e1cc
pop ecx
test al, al
je 0x58e875
mov byte [ebp - 3], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x178], 0
jne 0x58e642
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x179], 0
jne 0x58e642
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x1a9], 1
je 0x58e642
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x260], 0
jne 0x58e642
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x1a9], 0
je 0x58e60a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x1a9], 2
jne 0x58e82f
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.005820c8
fstp qword [ebp - 0x24]
wait
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, ebx
call fcn.00588c18
fcomp qword [ebp - 0x24]
fnstsw ax
sahf
jae 0x58e82f
mov byte [ebp - 2], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x260], 0
je 0x58e6a1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp word [eax + 0x1f2], 0
je 0x58e6a1
lea eax, [ebp - 2]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edi, dword [eax + 0x254]
mov ecx, dword [edi + 0x34]
mov eax, dword [ebp + 8]
mov edx, dword [edi + 0x38]
lea eax, [ebp - 0x28]
call fcn.0040433c
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edi, dword [eax - 8]
mov eax, dword [edi + 0x1f4]
call dword [edi + 0x1f0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x260], 0
je 0x58e6bc
cmp byte [ebp - 2], 0
jne 0x58e6bc
mov eax, dword [ebp + 8]
inc dword [eax - 4]
cmp byte [ebp - 2], 0
jne 0x58e819
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x260], 0
je 0x58e708
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.00581f44
test al, al
jne 0x58e708
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x260], 0
jne 0x58e87f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x254]
call fcn.00403308
mov dl, 1
mov eax, dword [0x57fd48]
call fcn.0057ffcc
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx + 0x254], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp word [eax + 0x202], 0
je 0x58e76f
push ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
xor ecx, ecx
mov eax, dword [edi + 0x204]
call dword [edi + 0x200]
xor eax, eax
push ebp
push 0x58e7d9
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00590748
test al, al
je 0x58e7b0
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.0058df50
pop ecx
jmp 0x58e7cf
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x254]
call fcn.00403308
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
xor edx, edx
mov dword [eax + 0x254], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58e807
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0x44]
jmp 0x58e87f
mov byte [ebp - 1], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0x44]
jmp 0x58e87f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x1a5], 0
je 0x58e85f
lea ecx, [ebp - 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov byte [ebp - 1], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0x44]
jmp 0x58e87f
inc esi
dec dword [ebp - 0xc]
jne 0x58e57f
cmp byte [ebp - 1], 0
je 0x58e923
cmp byte [ebp - 3], 0
je 0x58e8ba
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp word [eax + 0x202], 0
je 0x58e8ba
push ebx
mov eax, dword [ebp + 8]
mov esi, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov cl, 1
mov eax, dword [esi + 0x204]
call dword [esi + 0x200]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, ebx
call fcn.00591314
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax + 0x254]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x248]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax + 0x254]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x24c]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x250]
inc word [eax + 0xe]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x250]
inc word [eax + 0xc]
jmp 0x58e943
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x260], 0
je 0x58e943
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x254]
call fcn.00403308
inc ebx
dec dword [ebp - 8]
jne 0x58e3a2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
xor edx, edx
mov dword [eax + 0x254], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58e98a
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00404094
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404094
ret