Function at 0x59bb50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x59bb58
push ecx
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x59be39
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [0x5a5f50]
mov eax, dword [eax]
call fcn.004a0248
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040a380
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 8]
mov ecx, 0x59be50
call fcn.0040503c
mov eax, dword [ebp - 8]
call fcn.004d9000
test al, al
je 0x59be11
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5ec]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x110]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5ec]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x110]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5ec]
call fcn.00480174
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5ec]
mov edx, dword [eax]
call dword [edx + 0xc8]
test eax, eax
jge 0x59bc1b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5e8]
xor edx, edx
call fcn.00491db0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5e8]
mov dl, 1
call fcn.00491d5c
jmp 0x59be11
mov byte [0x5a845f], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5e8]
xor edx, edx
call fcn.00491d5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5e8]
mov dl, 1
call fcn.00491db0
mov byte [ebp - 0x15], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5ec]
mov eax, dword [eax + 0x218]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x59bdc0
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [0x5a5f50]
mov eax, dword [eax]
call fcn.0049fa8c
xor eax, eax
push ebp
push 0x59bdad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
mov dl, 1
mov eax, dword [0x48e8e4]
call fcn.0048fdd8
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5ec]
mov eax, dword [eax + 0x218]
mov edx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0xc]
call fcn.00409448
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00491d5c
cmp dword [0x5a8480], 0
je 0x59bd0d
lea edx, [ebp - 0x2c]
mov eax, dword [0x5a8480]
call fcn.00409448
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.0040513c
jne 0x59bd0d
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.00491d5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5e8]
xor edx, edx
call fcn.00491d5c
mov byte [ebp - 0x15], 1
mov eax, dword [ebp - 0xc]
call fcn.00404ff0
mov edx, eax
sub edx, 4
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.0043e430
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0xc]
call fcn.00404dc8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00491cec
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0x8c], edx
mov dword [eax + 0x88], fcn.0059be88
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov edx, 0xc
call fcn.00491e94
mov edx, dword [ebp - 0x10]
call fcn.00492200
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
mov eax, dword [eax + 0x208]
mov edx, 1
call fcn.00453014
push eax
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov edx, 0x59be60
call fcn.0040503c
mov edx, dword [ebp - 0x34]
pop eax
call fcn.00452f70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59bdb4
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
mov eax, dword [eax + 0x208]
mov edx, 1
call fcn.00453014
mov edx, 0x59be80
call fcn.00452f70
cmp byte [ebp - 0x15], 0
jne 0x59be09
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5e8]
mov dl, 1
call fcn.00491db0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5e8]
mov dl, 1
call fcn.00491d5c
mov eax, dword [ebp - 0x10]
call fcn.00403f00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59be40
lea eax, [ebp - 0x34]
mov edx, 6
call fcn.00404d54
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404d54
ret