Function at 0x54daac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x54dab4
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x54deb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
cmp byte [edi + 0x50], 0
je 0x54de6c
cmp dword [edi + 0x40], 0
jle 0x54de6c
mov dl, 1
mov eax, dword [0x5404dc]
call fcn.0053e50c
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x53f284]
call fcn.0053e50c
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
lea ecx, [ebp - 0x28]
mov edx, dword [0x540338]
mov eax, 1
call fcn.0053e6e0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
add eax, 0x10
mov ecx, dword [0x53e8b0]
call fcn.00406524
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x54de65
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 0x2710
mov eax, dword [ebp - 8]
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.00409bb4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
add eax, 0x20
call fcn.00405494
lea edx, [ebp - 0x30]
mov eax, dword [edi + 0xc]
call fcn.005440c0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
add eax, 0x24
call fcn.00405494
mov eax, dword [ebp - 8]
mov byte [eax + 0x14], 1
mov eax, dword [edi + 0x20]
mov edx, dword [ebp - 8]
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.00405304
mov eax, dword [edi + 0x40]
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x540304]
call fcn.004063c8
add esp, 4
xor esi, esi
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x54dca5
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
mov eax, dword [edi + 0x30]
mov edx, dword [ebp - 0x14]
call fcn.0041f1bc
mov ebx, eax
cmp byte [ebx + 0xc], 0
je 0x54dc96
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0x2c]
call fcn.0054cca8
mov dl, 1
mov eax, dword [0x540134]
call fcn.0053e50c
mov edx, dword [ebp - 0x10]
mov dword [edx + esi*4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + esi*4]
add eax, 0x14
mov edx, dword [ebp - 0x20]
call fcn.00405494
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + esi*4]
add eax, 0xc
mov edx, dword [ebp - 0x1c]
call fcn.00405494
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.00409bb4
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + esi*4]
add eax, 0x18
call fcn.00405494
cmp dword [ebx + 0x28], 0
je 0x54dc95
lea ecx, [ebp - 0x38]
mov dx, word [ebx + 0x28]
mov eax, 0x54decc
call fcn.0053ab4c
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + esi*4]
add eax, 0x10
call fcn.00405494
inc esi
mov dword [ebx + 0x20], edi
inc dword [ebp - 0x14]
dec dword [ebp - 0x24]
jne 0x54dbf9
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
add eax, 0x20
mov edx, dword [ebp - 0x10]
mov ecx, dword [0x540304]
call fcn.00406524
mov eax, dword [edi + 0xc]
call fcn.00543fe0
mov edx, dword [ebp - 8]
call fcn.005432e4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x54dce9
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0
je 0x54dce9
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
jne 0x54dcff
mov ecx, 0x54ded8
mov dl, 1
mov eax, dword [0x522b54]
call fcn.0040e0a8
call fcn.00404530
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 0xc]
call fcn.0054d5a0
lea eax, [edi + 0x3c]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x18]
call fcn.00404e58
mov dl, 1
mov eax, dword [0x41c688]
call fcn.00403c70
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
call fcn.0040620c
dec eax
test eax, eax
jl 0x54ddfb
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
mov esi, dword [eax + edx*4]
lea eax, [ebp - 0x3c]
mov edx, dword [esi + 0xc]
mov edx, dword [edx + 0x1c]
call fcn.00404e58
mov eax, dword [ebp - 0x3c]
call fcn.00409d20
mov ebx, eax
mov eax, dword [esi + 0xc]
lea edx, [eax + 0x38]
mov eax, ebx
call fcn.0054b604
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]
mov al, byte [eax + 0xc]
call fcn.0054b764
mov dword [ebx + 0x38], eax
inc dword [ebx + 0x5c]
cmp dword [ebx + 0x5c], 0x7fffffff
jne 0x54ddb7
mov dword [ebx + 0x5c], 1
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x28]
xor edx, edx
call fcn.004055cc
je 0x54dde5
mov byte [ebp - 1], 0
lea eax, [ebp - 0x40]
mov edx, dword [esi + 0xc]
mov edx, dword [edx + 0x28]
call fcn.00404e58
mov eax, dword [ebp - 0x40]
call fcn.00525290
mov dword [ebx + 0x3c], eax
jmp 0x54ddef
mov edx, ebx
mov eax, dword [ebp - 0x18]
call fcn.0041f010
inc dword [ebp - 0x14]
dec dword [ebp - 0x24]
jne 0x54dd4e
mov eax, dword [ebp - 0x18]
cmp dword [eax + 8], 0
jle 0x54de1f
mov eax, dword [ebp - 0x18]
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_PostMessageA
jmp 0x54de27
mov eax, dword [ebp - 0x18]
call fcn.00403ca0
cmp byte [0x57eb58], 0
jne 0x54de41
mov ecx, edi
mov dl, 1
mov eax, dword [0x54b408]
call fcn.0054e960
mov dword [edi + 0x44], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54de6c
cmp dword [ebp - 0xc], 0
je 0x54de5c
mov eax, dword [ebp - 0xc]
call fcn.00403ca0
mov eax, dword [ebp - 8]
call fcn.00403ca0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54deb7
lea eax, [ebp - 0x40]
mov edx, 6
call fcn.00404bd8
lea eax, [ebp - 0x28]
mov edx, dword [0x53812c]
call fcn.004064e8
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404bd8
lea eax, [ebp - 0x10]
mov edx, dword [0x540304]
call fcn.004064e8
ret