Function at 0x53c7e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58f2c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
xor edi, edi
call fcn.0051e6b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], edi
call fcn.00514470
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push edi
add edx, 4
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call fcn.0052d1d0
lea eax, [esp + 0x1a]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 2
call fcn.0052c5c0
mov ecx, dword [eax]
cmp dword [ecx], edi
lea ecx, [esp + 0x1a]
setg bl
call fcn.005144a0
test bl, bl
je 0x53c95b
lea ebx, [ebx]
push 0
push 0
lea ecx, [esp + 0x14]
call fcn.0052c330
shr eax, 3
test al, 1
je 0x53c88a
lea edx, [esp + 0xc]
push edx
mov ecx, edx
call fcn.0052c690
mov edi, eax
test edi, edi
je 0x53c95b
push 0
push 0
lea ecx, [esp + 0x14]
call fcn.0052c330
test ax, ax
jne 0x53c95b
lea eax, [esp + 0x22]
push eax
lea ecx, [esp + 0x10]
call fcn.0052c3d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 3
call fcn.00514cd0
lea ecx, [esp + 0x22]
mov byte [esp + 0x44], 2
call fcn.005144a0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x2a]
call fcn.00518e20
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 8]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 4
call fcn.0051f4d0
mov ecx, eax
call fcn.0051bb00
lea ecx, [esp + 0x26]
mov byte [esp + 0x44], 2
call fcn.0051ac60
push 0x5c9668
lea ecx, [esp + 0x22]
call fcn.005156c0
lea eax, [esp + 0x1e]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 5
call fcn.0052cbc0
lea ecx, [esp + 0x1e]
mov byte [esp + 0x44], 2
call fcn.005144a0
lea ecx, [esp + 0x1a]
push ecx
lea ecx, [esp + 0x10]
call fcn.0052c5c0
mov edx, dword [eax]
cmp dword [edx], 0
lea ecx, [esp + 0x1a]
setg bl
call fcn.005144a0
test bl, bl
jne 0x53c860
push 0
push 0
lea ecx, [esp + 0x14]
call fcn.0052c330
test ax, ax
jne 0x53c9b1
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 1
call fcn.0052c990
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call fcn.005144a0
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
call fcn.0051ecc0
pop edi
pop esi
mov eax, 0x30
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
lea esi, [eax - 1]
test esi, esi
jl 0x53ca2b
mov bl, 6
lea ecx, [esp + 0x22]
push ecx
push esi
lea ecx, [esp + 0x1c]
call fcn.0051f4d0
mov ecx, eax
call fcn.0051b770
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], bl
call fcn.00514cd0
lea ecx, [esp + 0x22]
mov byte [esp + 0x44], 2
call fcn.005144a0
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
call fcn.0052cbc0
push 0
push 0
lea ecx, [esp + 0x14]
call fcn.0052c330
test ax, ax
jne 0x53ca26
mov eax, dword [esp + 0xc]
push eax
call fcn.00536280
mov edi, eax
add esp, 4
test edi, edi
jne 0x53ca2b
sub esi, 1
jns 0x53c9c1
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 1
call fcn.0052c990
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call fcn.005144a0
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
call fcn.0051ecc0
mov ecx, dword [esp + 0x3c]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret