Function at 0x581c72
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x440]
mov edx, dword [ebp - 8]
call fcn.0041cc34
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp byte [eax], 1
jne 0x5818f2
mov eax, dword [0x5a3eb4]
cmp byte [eax + 0xe68], 0
jne 0x581c72
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
jmp 0x581c72
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
mov edx, dword [eax + 0x677]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x380]
mov eax, dword [eax + 0x68]
call fcn.0042d660
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x3c]
mov eax, dword [0x5a384c]
call fcn.004077b0
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.004da43c
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x18]
mov dword [ebp - 0x44], edx
mov byte [ebp - 0x40], 0
lea edx, [ebp - 0x44]
xor ecx, ecx
call fcn.0040c174
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x380]
call fcn.00457868
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
call fcn.0040ae9c
test al, al
je 0x581c72
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x581995
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
call fcn.004ece44
test al, al
je 0x581c72
inc dword [ebp - 0xc]
jmp 0x581c72
mov eax, dword [ebp - 0x10]
cmp byte [eax], 2
jne 0x581b41
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4fc438]
call fcn.00501a3c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x581b3a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x581ab1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [eax + 0xcc], edx
mov dword [eax + 0xc8], 0x581e24
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x3a], 1
mov eax, dword [ebp - 0x18]
add eax, 0x44
call fcn.00405404
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x40], 1
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x39], 1
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x50], 1
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x5c], 1
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x18]
call fcn.00502384
mov eax, dword [ebp - 0x18]
call fcn.00502f4c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jle 0x581aa7
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x43c]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x581a90
mov eax, dword [ebp - 0x10]
push dword [eax + 0x14]
push 0x581e10
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.004057a8
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x43c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x581aa7
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x43c]
mov edx, dword [ebp - 0x24]
call fcn.0041f3ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x581b24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x581c72
mov eax, dword [ebp - 0x18]
call fcn.004044a4
ret
mov eax, dword [ebp - 0x10]
cmp byte [eax], 3
jne 0x581c72
lea ecx, [ebp - 0x1c]
mov eax, dword [0x5a3fc8]
mov edx, 0x581e1c
call fcn.0057ad28
xor eax, eax
push ebp
push 0x581bff
sbb ebx, dword [eax]
sbb ebx, dword [eax]
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x3c]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x43c]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x581bde
mov eax, dword [ebp - 0x10]
push dword [eax + 0x14]
push 0x581e10
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.004057a8
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x43c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x581bf5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x43c]
mov edx, dword [ebp - 0x24]
call fcn.0041f3ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x581c72
inc dword [ebp - 8]
dec dword [ebp - 0x28]
jne 0x5818b9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x440]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0xc]
jne 0x581cb1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
mov edx, dword [eax + 0x67b]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x380]
mov eax, dword [eax + 0x68]
call fcn.0042d660
jmp 0x581cd1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
mov edx, dword [eax + 0x67f]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x380]
mov eax, dword [eax + 0x68]
call fcn.0042d660
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [0x5a36ec]
call fcn.004077b0
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.004da43c
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x80], edx
mov byte [ebp - 0x7c], 0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x440]
mov edx, dword [edx + 8]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x78], edx
mov byte [ebp - 0x74], 0
lea edx, [ebp - 0x80]
mov ecx, 1
call fcn.0040c174
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x380]
call fcn.00457868
lea edx, [ebp - 0x84]
mov eax, dword [0x5a3718]
mov eax, dword [eax]
call fcn.0040fe6c
lea eax, [ebp - 0x84]
mov edx, dword [0x5a3ee8]
mov edx, dword [edx]
call fcn.004056e0
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x43c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x458]
call fcn.004ed7f4
cmp dword [ebp - 0x14], 0xffffffff
je 0x581db7
mov eax, dword [0x5a3eb4]
cmp byte [eax + 0xe68], 0
jne 0x581db7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x440]
mov edx, dword [ebp - 0x14]
call fcn.0041cc34
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
call fcn.0040ae9c
test al, al
je 0x581db7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
call fcn.004ed364
mov eax, dword [ebp - 4]
call fcn.00581e48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x581e01
lea eax, [ebp - 0x84]
call fcn.00405404
lea eax, [ebp - 0x70]
mov edx, 0xb
call fcn.00405428
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00405428
lea eax, [ebp - 0x1c]
call fcn.004072b4
ret