Function at 0x54c0e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x54c393
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [ebx + 0x30], 0
jne 0x54c121
mov ecx, 0x54c3ac
mov dl, 1
mov eax, dword [0x522a90]
call fcn.0040e0a8
call fcn.00404530
cmp dl, 1
jne 0x54c18f
mov dl, 1
mov eax, dword [0x41c688]
call fcn.00403c70
mov esi, eax
lea eax, [ebp - 0x18]
mov edx, dword [ebx + 0x1c]
call fcn.00404c4c
lea eax, [ebx + 0x1c]
call fcn.00404bb4
mov ecx, esi
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.0054bfc4
lea eax, [ebx + 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.00404c08
mov edx, dword [ebx + 0x30]
mov eax, ebx
call fcn.0054be8c
mov edx, dword [ebx + 0x30]
mov eax, esi
call fcn.0054bf54
mov edx, esi
mov eax, ebx
call fcn.0054be8c
mov eax, esi
call fcn.00403ca0
mov byte [ebx + 0x34], 1
mov byte [ebp - 1], 1
jmp 0x54c36f
cmp byte [ebx + 0x34], 0
je 0x54c36f
mov dl, 1
mov eax, dword [0x540c68]
call fcn.0053e50c
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, 0xc
call fcn.00405304
mov eax, dword [ebp - 8]
add eax, 0x14
mov edx, dword [ebx + 0x28]
mov edx, dword [edx + 0xc]
call fcn.00405494
mov eax, dword [ebp - 8]
add eax, 0x18
mov edx, dword [ebx + 0x28]
mov edx, dword [edx + 8]
call fcn.00405494
mov eax, dword [ebp - 8]
add eax, 0x1c
call fcn.00405304
push 2
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x540c3c]
call fcn.004063c8
add esp, 4
mov eax, dword [ebp - 0x14]
mov edx, 0x54c3d0
call fcn.00405340
mov eax, dword [ebp - 0x14]
add eax, 4
mov edx, 0x54c3e8
call fcn.00405340
mov eax, dword [ebp - 8]
add eax, 0x34
mov edx, dword [ebp - 0x14]
mov ecx, dword [0x540c3c]
call fcn.00406524
mov eax, dword [ebp - 8]
add eax, 0x10
call fcn.00405304
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x20], edx
mov eax, dword [ebx + 0x20]
dec eax
je 0x54c24c
dec eax
je 0x54c255
jmp 0x54c25e
mov eax, dword [ebp - 8]
mov byte [eax + 0x24], 1
jmp 0x54c26c
mov eax, dword [ebp - 8]
mov byte [eax + 0x24], 2
jmp 0x54c26c
mov dword [ebx + 0x20], 3
mov eax, dword [ebp - 8]
mov byte [eax + 0x24], 0
mov eax, dword [ebp - 8]
add eax, 0x28
mov edx, dword [ebx + 0x1c]
call fcn.00405494
mov eax, dword [ebp - 8]
add eax, 0x2c
call fcn.00405304
mov eax, dword [ebp - 8]
mov byte [eax + 0x30], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0x31], 1
xor eax, eax
push ebp
push 0x54c368
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xc]
call fcn.00543fe0
mov edx, dword [ebp - 8]
call fcn.005430e4
mov dword [ebp - 0xc], eax
mov edx, dword [ebx + 0x30]
mov eax, ebx
call fcn.0054be8c
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0
je 0x54c332
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0xc]
call fcn.0054d5a0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
call fcn.0040620c
mov edi, eax
dec edi
test edi, edi
jl 0x54c332
inc edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov esi, dword [eax + edx*4]
cmp byte [esi + 0x18], 0
je 0x54c322
mov eax, dword [ebx + 0x18]
push eax
mov ecx, dword [ebx + 0x14]
mov edx, dword [esi + 0x1c]
mov eax, ebx
call fcn.0054bdb0
test al, al
je 0x54c32c
mov eax, dword [ebx + 0x30]
mov edx, esi
call fcn.0054beec
jmp 0x54c32c
mov eax, dword [ebx + 0x30]
mov edx, esi
call fcn.0054beec
inc dword [ebp - 0x10]
dec edi
jne 0x54c2ef
mov byte [ebp - 1], 1
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax]
call dword [ecx]
mov byte [ebx + 0x34], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54c36f
cmp dword [ebp - 0xc], 0
je 0x54c35f
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 0x54c39a
lea eax, [ebp - 0x18]
call fcn.00404bb4
lea eax, [ebp - 0x14]
mov edx, dword [0x540c3c]
call fcn.004064e8
ret