Function at 0x588418
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x588420
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x58882c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 1
cmp byte [edi + 0x50], 0
je 0x5887e8
cmp dword [edi + 0x40], 0
jle 0x5887e8
mov dl, 1
mov eax, dword [0x57579c]
call fcn.00572b70
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x573c38]
call fcn.00572b70
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xc], eax
lea ecx, [ebp - 0x28]
mov edx, dword [0x575520]
mov eax, 1
call fcn.00572d2c
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov ecx, dword [0x572f10]
call fcn.00409284
xor eax, eax
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x5887e1
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [edi + 0x48]
add edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x2c]
call fcn.0045c7b0
add eax, 0x2710
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov byte [eax + 0x18], 0
mov byte [eax + 0x19], 0
mov byte [eax + 0x1a], 1
mov byte [eax + 0x1c], 0
mov byte [eax + 0x1b], 0
lea edx, [ebp - 0x2c]
mov eax, edi
call fcn.0041fa80
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
add eax, 0x20
call fcn.00407d1c
lea edx, [ebp - 0x30]
mov eax, dword [edi + 0xc]
call fcn.0057ade0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
add eax, 0x24
call fcn.00407d1c
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x14], 1
mov eax, dword [edi + 0x20]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x10]
mov ebx, dword [edx]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x2c]
mov dword [ebx + 0x18], eax
mov byte [ebx + 0x1c], 0
lea eax, [ebx + 0xc]
call fcn.00406d98
mov eax, dword [edi + 0x40]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x5754e4]
call fcn.00409124
add esp, 4
xor esi, esi
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x588620
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [edi + 0x30]
mov edx, dword [ebp - 0x1c]
call fcn.00448cd4
mov ebx, eax
cmp byte [ebx + 0xc], 0
je 0x588611
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, dword [ebx + 0x2c]
call fcn.005875e4
mov dl, 1
mov eax, dword [0x575214]
call fcn.00572b70
mov edx, dword [ebp - 4]
mov dword [edx + esi*4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
add eax, 0x14
mov edx, dword [ebp - 0xc]
call fcn.00407d1c
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
add eax, 0xc
mov edx, dword [ebp - 8]
call fcn.00407d1c
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.0041fa80
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
add eax, 0x18
call fcn.00407d1c
cmp dword [ebx + 0x28], 0
je 0x588610
lea ecx, [ebp - 0x38]
movzx edx, word [ebx + 0x28]
mov eax, 0x58884c
call fcn.0056e884
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
add eax, 0x10
call fcn.00407d1c
inc esi
mov dword [ebx + 0x20], edi
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
jne 0x588574
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
add eax, 0x20
mov edx, dword [ebp - 4]
mov ecx, dword [0x5754e4]
call fcn.00409284
mov eax, dword [edi + 0xc]
call fcn.0057accc
mov edx, dword [ebp - 0x14]
call fcn.005797e0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x588664
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], 0
je 0x588664
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc], 0
jne 0x58867a
mov ecx, 0x588860
mov dl, 1
mov eax, dword [0x54e710]
call fcn.00425260
call fcn.00406448
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 0xc]
call fcn.00587eec
lea eax, [edi + 0x3c]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x18]
call fcn.00407d08
mov dl, 1
mov eax, dword [0x43aa18]
call fcn.00404fd4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
call fcn.00408f70
dec eax
test eax, eax
jl 0x588777
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x1c]
mov esi, dword [eax + edx*4]
lea eax, [ebp - 0x3c]
mov edx, dword [esi + 0xc]
mov edx, dword [edx + 0x1c]
call fcn.00407d08
mov eax, dword [ebp - 0x3c]
call fcn.0041fc7c
mov ebx, eax
mov eax, dword [esi + 0xc]
lea edx, [eax + 0x38]
mov eax, ebx
call fcn.00585d48
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x20]
mov dword [ebx + 0x18], edx
mov edx, dword [eax + 0x24]
mov dword [ebx + 0x1c], edx
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x10]
movzx eax, byte [eax + 0xc]
call fcn.00585ed0
mov dword [ebx + 0x38], eax
inc dword [ebx + 0x5c]
cmp dword [ebx + 0x5c], 0x7fffffff
jne 0x588733
mov dword [ebx + 0x5c], 1
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x28]
xor edx, edx
call fcn.00407b1c
je 0x588761
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x40]
mov edx, dword [esi + 0xc]
mov edx, dword [edx + 0x28]
call fcn.00407d08
mov eax, dword [ebp - 0x40]
call fcn.00552f60
mov dword [ebx + 0x3c], eax
jmp 0x58876b
mov edx, ebx
mov eax, dword [ebp - 0x20]
call fcn.00448af0
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
jne 0x5886c9
mov eax, dword [ebp - 0x20]
cmp dword [eax + 8], 0
jle 0x58879b
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [edi + 0x18]
push eax
push 0x1602
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x34]
push eax
call sub.user32.dll_PostMessageW
jmp 0x5887a3
mov eax, dword [ebp - 0x20]
call fcn.00405004
cmp byte [0x5b0e9c], 0
jne 0x5887bd
mov ecx, edi
mov dl, 1
mov eax, dword [0x58580c]
call fcn.00589340
mov dword [edi + 0x44], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5887e8
cmp dword [ebp - 0x18], 0
je 0x5887d8
mov eax, dword [ebp - 0x18]
call fcn.00405004
mov eax, dword [ebp - 0x14]
call fcn.00405004
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x588833
lea eax, [ebp - 0x40]
mov edx, 6
call fcn.00406db0
lea eax, [ebp - 0x28]
mov edx, dword [0x56af20]
call fcn.00409248
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00406db0
lea eax, [ebp - 4]
mov edx, dword [0x5754e4]
call fcn.00409248
ret