Function at 0x7c59e8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x7c59f1
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x7c5ca0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x10]
call fcn.004360dc
cmp dword [ebp - 8], 0
jne 0x7c5a37
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.007c61b8
jmp 0x7c5c69
lea eax, [ebp - 0x10]
mov dx, 0x3a
call fcn.00435270
mov ebx, eax
lea eax, [ebp - 0x10]
mov dx, 0x2f
call fcn.00435270
cmp ebx, 0xffffffff
je 0x7c5a5e
cmp ebx, eax
jl 0x7c5c5e
test eax, eax
jne 0x7c5a80
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.007c586c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.0040b328
jmp 0x7c5c69
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
call fcn.007c5968
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0x10]
call fcn.0040b328
mov dl, 1
mov eax, dword [0x48c37c]
call fcn.004b83f8
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x7c5c57
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
add eax, 0xc
mov edx, 0x7c5cbc
call fcn.0040a948
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x30]
xor ebx, ebx
jmp 0x7c5b64
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x28]
mov edx, 0x7c5ccc
call fcn.0040b4c0
jne 0x7c5b00
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
jmp 0x7c5b64
test ebx, ebx
jle 0x7c5b63
lea ecx, [ebp - 0x2c]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x2c]
mov edx, 0x7c5cdc
call fcn.0040b4c0
jne 0x7c5b63
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
cmp ebx, 1
jg 0x7c5b56
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0x11
lea eax, [ebp - 0x34]
push eax
push 0
mov ecx, dword [0x875a7c]
mov dl, 1
mov eax, dword [0x7b6db8]
call fcn.0042f5f0
call fcn.00409c14
dec ebx
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
jmp 0x7c5b64
inc ebx
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jl 0x7c5ad8
mov eax, dword [ebp - 0x14]
call fcn.0040a558
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x7c5bde
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x38]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
cmp dword [ebp - 0x38], 0
jne 0x7c5bb3
mov eax, dword [ebp - 0x14]
mov edx, 0x7c5cbc
call fcn.0040b2d0
mov eax, dword [ebp - 0x14]
jmp 0x7c5bda
mov eax, dword [ebp - 0x14]
push dword [eax]
lea ecx, [ebp - 0x3c]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x3c]
push 0x7c5cbc
mov eax, dword [ebp - 0x14]
mov edx, 3
call fcn.0040b3b0
inc ebx
dec esi
jne 0x7c5b8e
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x7c5bea
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2 - 2], 0x2f
je 0x7c5c24
mov ebx, dword [ebp - 0x14]
mov ebx, dword [ebx]
test ebx, ebx
je 0x7c5c03
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0xc]
push eax
mov ecx, ebx
dec ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, 1
call fcn.0040b4f8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.0040a948
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
call fcn.007c586c
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x14]
call fcn.0040b328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7c5c69
mov eax, dword [ebp - 0x18]
call fcn.004086a4
pop eax
jmp eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.0040a948
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7c5ca7
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.0040a5b8
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.0040a5b8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a5b8
pop eax
jmp eax