Function at 0x50e540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x50e548
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50ed03
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50ed1c
call fcn.004860d8
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00483904
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
call fcn.00409b80
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1f1], 0
je 0x50e5ac
lea eax, [ebp - 0xc]
mov edx, 0x50ed3c
call fcn.00405280
cmp dword [ebp - 0xc], 0
jne 0x50e5c9
mov eax, dword [ebp - 4]
add eax, 0x238
mov edx, 0x50ed60
call fcn.0040523c
jmp 0x50ecdd
mov edx, 0x50ed88
mov eax, dword [ebp - 4]
call fcn.00511784
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.004f1940
test al, al
jne 0x50e6cb
mov edx, 0x50edac
mov eax, dword [ebp - 4]
call fcn.00511784
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x4c
mov edx, dword [ebp - 0xc]
call fcn.0040523c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov byte [eax + 0x48], 1
mov eax, dword [ebp - 0xc]
mov edx, 0x50ed3c
call fcn.004055f8
jne 0x50e62d
lea eax, [ebp - 0xc]
call fcn.004051e8
jmp 0x50e63a
lea eax, [ebp - 0xc]
mov edx, 0x50edd0
call fcn.004054b4
mov eax, dword [ebp - 4]
push dword [eax + 0x180]
push dword [ebp - 0xc]
push 0x50eddc
mov eax, dword [ebp - 4]
add eax, 0x168
mov edx, 3
call fcn.0040556c
mov eax, dword [ebp - 4]
push dword [eax + 0x180]
push dword [ebp - 0xc]
push 0x50edec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0xc
mov edx, 3
call fcn.0040556c
mov eax, dword [ebp - 4]
push dword [eax + 0x180]
push dword [ebp - 0xc]
push 0x50edfc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x10
mov edx, 3
call fcn.0040556c
mov eax, dword [ebp - 4]
push dword [eax + 0x180]
push dword [ebp - 0xc]
push 0x50ee10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x14
mov edx, 3
call fcn.0040556c
jmp 0x50e727
mov edx, 0x50ee24
mov eax, dword [ebp - 4]
call fcn.00511784
mov eax, dword [ebp - 0xc]
mov edx, 0x50ed3c
call fcn.004055f8
jne 0x50e704
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x180]
mov eax, dword [ebp - 4]
add eax, 0x168
mov ecx, 0x50eddc
call fcn.004054f8
jmp 0x50e727
mov eax, dword [ebp - 4]
push dword [eax + 0x180]
push dword [ebp - 0xc]
push 0x50ee4c
mov eax, dword [ebp - 4]
add eax, 0x168
mov edx, 3
call fcn.0040556c
mov eax, dword [ebp - 4]
add eax, 0x254
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x4c]
call fcn.0040523c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x254]
mov edx, 0x50ee5c
call fcn.004055f8
jne 0x50e75c
mov eax, dword [ebp - 4]
mov byte [eax + 0x259], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
call fcn.0040a2f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
call fcn.0040a2f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
call fcn.0040a2f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
call fcn.0040a2f0
xor eax, eax
push ebp
push 0x50eb77
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50ee80
call fcn.004860d8
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00483904
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x44
call fcn.0040523c
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50eea0
call fcn.004860d8
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00483904
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x68
call fcn.0040523c
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50eec0
call fcn.004860d8
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x50eef0
call fcn.004054f8
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00511784
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50eec0
call fcn.004860d8
mov eax, dword [ebp - 0x34]
mov edx, 0x50ef14
call fcn.004055f8
je 0x50e93a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x259], 0
je 0x50e897
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50ef20
call fcn.004860d8
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00409b80
cmp dword [ebp - 0x38], 0
je 0x50e93a
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50ef48
call fcn.004860d8
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.00483904
mov eax, dword [ebp - 0x40]
call fcn.00409e28
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov dword [edx + 0x18], eax
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50ef20
call fcn.004860d8
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00483904
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x1c
call fcn.0040523c
push 0x50ef6c
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
call fcn.00409cec
push dword [ebp - 0x54]
push 0x50efa0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push dword [eax + 0x1c]
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.0040556c
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.00511784
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50efb4
call fcn.004860d8
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.00483904
mov eax, dword [ebp - 0x58]
call fcn.00409e28
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov dword [edx + 0x28], eax
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50efd8
call fcn.004860d8
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.00483904
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x2c
call fcn.0040523c
lea ecx, [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50effc
call fcn.004860d8
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
call fcn.00483904
mov eax, dword [ebp - 0x68]
call fcn.00409e28
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov dword [edx + 0x30], eax
lea ecx, [ebp - 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50f024
call fcn.004860d8
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
call fcn.00483904
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x34
call fcn.0040523c
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50f04c
call fcn.004860d8
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
call fcn.00483904
mov eax, dword [ebp - 0x78]
call fcn.00409e28
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov dword [edx + 0x38], eax
lea ecx, [ebp - 0x84]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50f078
call fcn.004860d8
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x80]
call fcn.00483904
mov eax, dword [ebp - 0x80]
call fcn.00409e28
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov dword [edx + 0x40], eax
lea ecx, [ebp - 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50f0a0
call fcn.004860d8
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
call fcn.00483904
mov eax, dword [ebp - 0x88]
call fcn.00409e28
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov dword [edx + 0x3c], eax
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50f0d0
call fcn.004860d8
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x90]
call fcn.00483904
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x168]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x20
call fcn.004054f8
lea ecx, [ebp - 0x9c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50f0f4
call fcn.004860d8
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x98]
call fcn.00483904
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x168]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x24
call fcn.004054f8
lea ecx, [ebp - 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov edx, 0x50f118
call fcn.004860d8
mov eax, dword [ebp - 0xa0]
mov edx, 0x50ef14
call fcn.004055f8
sete al
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov byte [edx + 0x60], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50ebbc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 4]
mov dword [edx + 0x278], eax
mov eax, dword [ebp - 4]
add eax, 0x274
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x1c]
call fcn.0040523c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [eax + 0x18], 0
jne 0x50ec10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x168]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x1c
call fcn.004054f8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [eax + 0x28], 0
jne 0x50ec3c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x168]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x2c
call fcn.004054f8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [eax + 0x30], 0
jne 0x50ec68
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x168]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x34
call fcn.004054f8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x48], 0
je 0x50ec97
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004f2308
test al, al
jne 0x50ec97
mov eax, dword [ebp - 4]
add eax, 0x238
mov edx, 0x50f178
call fcn.0040523c
jmp 0x50ecdd
mov eax, dword [ebp - 4]
add eax, 0x158
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0xc]
call fcn.0040523c
mov eax, dword [ebp - 4]
add eax, 0x15c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x10]
call fcn.0040523c
mov eax, dword [ebp - 4]
add eax, 0x164
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
call fcn.0040523c
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ed0a
lea eax, [ebp - 0xa0]
mov edx, 0x24
call fcn.0040520c
lea eax, [ebp - 0xc]
call fcn.004051e8
ret