Function at 0x546b34
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00404cd4
mov eax, dword [ebp + 0xc]
call fcn.00404cd4
xor eax, eax
push ebp
push 0x546e0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jle 0x546b87
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00525904
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.004b83d8
test eax, eax
jle 0x546bc5
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
call fcn.004048cc
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
call fcn.004048cc
lea eax, [ebp + 0xc]
mov edx, dword [ebp - 0x28]
call fcn.004048cc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.005347ac
test al, al
je 0x546c2f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x548]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00534140
and eax, 0xff
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x548]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00534140
and eax, 0xff
add ebx, eax
mov dword [ebp - 0x20], ebx
jmp 0x546da4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x32c]
mov edx, dword [eax]
call dword [edx + 0x28]
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x546d9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x32c]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00525904
mov eax, dword [eax + 0x30]
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x11c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00525904
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.004b83d8
test eax, eax
jge 0x546ca1
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x546cae
push ebp
mov eax, dword [ebp - 0xc]
call fcn.00546a4c
pop ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x546cc8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x32c]
mov edx, dword [eax]
call dword [edx + 0x38]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00534140
and eax, 0xff
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x32c]
mov edx, dword [eax]
call dword [edx + 0x38]
test eax, eax
jle 0x546d15
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x32c]
mov edx, dword [eax]
call dword [edx + 0x38]
mov edx, eax
dec edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x32c]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00525904
mov eax, dword [eax + 0x30]
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x11c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00525904
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
call fcn.004b83d8
test eax, eax
jle 0x546d5b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0053bb00
mov dword [ebp - 0x20], eax
jmp 0x546d68
push ebp
mov eax, dword [ebp + 0xc]
call fcn.00546a4c
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00534140
and eax, 0xff
add dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546da4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x32c]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x48]
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 0x10]
call fcn.0051d470
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
call fcn.0051d470
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1c]
call fcn.0053965c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546e13
lea eax, [ebp - 0x28]
call fcn.00404834
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404858
lea eax, [ebp - 0xc]
call fcn.00404834
lea eax, [ebp + 0xc]
call fcn.00404834
ret