Function at 0x5d1092
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x5d109b
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5d12d7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0xa0]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x28]
mov eax, dword [ebp - 4]
add eax, 0x30
mov edx, dword [ebp - 0x14]
call fcn.004071fe
cmp dword [ebp - 0x14], 0
jne 0x5d1167
mov eax, dword [ebp - 4]
push eax
push 0xffffffffffffffff
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
call fcn.005cebca
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
call fcn.005cebea
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x3c]
mov eax, 0x5ca444
call fcn.00407732
mov eax, dword [ebp - 0x3c]
mov ecx, 2
pop edx
call fcn.005cba02
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
and eax, 0xff
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x58]
cmp al, 1
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 0x2c], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2c], 0
je 0x5d11e3
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x14]
mov ecx, 0x5d12e8
call fcn.0040722a
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x154]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.004071fe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
call fcn.005d065e
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3c]
call fcn.005cd70a
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
jmp 0x5d11f6
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.004071e6
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x5d1272
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
call fcn.005cebca
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
call fcn.005cebea
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xb
lea eax, [ebp - 0x58]
push eax
lea edx, [ebp - 0x64]
mov eax, 0x5ca43c
call fcn.00407732
mov eax, dword [ebp - 0x64]
mov ecx, 1
pop edx
call fcn.0040ec9e
mov eax, dword [ebp - 0x48]
or ecx, 0xffffffff
mov edx, dword [ebp - 4]
call fcn.005cb9d2
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
call fcn.004050fa
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x26
jne 0x5d1358
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x7fffffff
mov edx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00405586
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0xa0]
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x28]
cmp dword [ebp - 0x14], 0
je 0x5d12e2
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x58]
sub al, 4
je 0x5d1389
sub al, 2
je 0x5d1389
mov eax, dword [ebp - 4]
push eax
push 0xffffffffffffffff
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
call fcn.005cebca
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
call fcn.005cebea
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x74]
mov eax, 0x5ca444
call fcn.00407732
mov eax, dword [ebp - 0x74]
mov ecx, 2
pop edx
call fcn.005cba02
jmp 0x5d1389
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x3f
je 0x5d1381
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0xa0]
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x28]
jmp 0x5d1389
lea eax, [ebp - 0x14]
call fcn.004071e6
cmp dword [ebp - 0x14], 0
je 0x5d13c7
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x58]
cmp al, 7
jne 0x5d13c7
push 0xffffffffffffffff
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
lea edx, [ebp - 0x80]
xor ecx, ecx
mov eax, 0x5d1300
call fcn.005c6ee6
cmp dword [ebp - 0x14], 0
je 0x5d13f5
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
and eax, 0xff
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x58]
cmp al, 1
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 0x34], al
jmp 0x5d1406
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 0xffffffff
mov eax, dword [ebp - 4]
mov byte [eax + 0x34], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
je 0x5d1468
lea eax, [ebp - 0x8c]
mov edx, dword [ebp - 0x14]
mov ecx, 0x5d12e8
call fcn.0040722a
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
mov ecx, dword [eax]
call dword [ecx + 0x154]
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004071fe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
call fcn.005d0616
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x38]
call fcn.005cc786
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
jmp 0x5d147b
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004071e6
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x48], edx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2c], 0
je 0x5d14c7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp byte [eax], 0x3f
je 0x5d14c7
mov cl, 2
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xf0]
test al, al
jne 0x5d14c7
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
lea edx, [ebp - 0x80]
xor ecx, ecx
mov eax, 0x5d1324
call fcn.005c6ee6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d12e1
lea eax, [ebp - 0x8c]
call fcn.004071e6
lea eax, [ebp - 0x88]
call fcn.004071e6
lea eax, [ebp - 0x84]
call fcn.00405062
lea eax, [ebp - 0x78]
call fcn.004071e6
lea eax, [ebp - 0x74]
mov edx, 3
call fcn.00405086
lea eax, [ebp - 0x68]
call fcn.004071e6
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.00405086
lea eax, [ebp - 0x48]
call fcn.00405062
lea eax, [ebp - 0x44]
call fcn.004071e6
lea eax, [ebp - 0x40]
call fcn.004071e6
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00405086
lea eax, [ebp - 0x18]
call fcn.004071e6
lea eax, [ebp - 0x14]
call fcn.004071e6
lea eax, [ebp - 0x10]
call fcn.00405062
ret