Function at 0x58d7b6
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x58d36c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x58d93e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x400]
mov edx, dword [eax + 0x677]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x380]
mov eax, dword [eax + 0x68]
call fcn.0042dc34
lea edx, [ebp - 0x30]
mov eax, dword [0x5ada08]
call fcn.004078c8
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0047b2c0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x380]
call fcn.00457dec
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x444]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x58d7c2
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x444]
mov edx, dword [ebp - 8]
call fcn.0041cf64
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp byte [eax], 1
jne 0x58d436
mov eax, dword [0x5adeb8]
cmp byte [eax + 0xe68], 0
jne 0x58d7b6
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
jmp 0x58d7b6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x400]
mov edx, dword [eax + 0x677]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x380]
mov eax, dword [eax + 0x68]
call fcn.0042dc34
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x3c]
mov eax, dword [0x5ad84c]
call fcn.004078c8
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.0047b2c0
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.0040c3d4
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x380]
call fcn.00457dec
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
call fcn.0040b0fc
test al, al
je 0x58d7b6
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x58d4d9
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
call fcn.004c8a80
test al, al
je 0x58d7b6
inc dword [ebp - 0xc]
jmp 0x58d7b6
mov eax, dword [ebp - 0x10]
cmp byte [eax], 2
jne 0x58d685
xor ecx, ecx
mov dl, 1
mov eax, dword [0x547b2c]
call fcn.0054d130
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x58d67e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x58d5f5
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], 0x58d968
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x3a], 1
mov eax, dword [ebp - 0x18]
add eax, 0x44
call fcn.00405414
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.0054da78
mov eax, dword [ebp - 0x18]
call fcn.0054e640
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jle 0x58d5eb
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x440]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x58d5d4
mov eax, dword [ebp - 0x10]
push dword [eax + 0x14]
push 0x58d954
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.004057b8
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x440]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x58d5eb
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x440]
mov edx, dword [ebp - 0x24]
call fcn.0041f980
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58d668
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58d7b6
mov eax, dword [ebp - 0x18]
call fcn.004044b4
ret
mov eax, dword [ebp - 0x10]
cmp byte [eax], 3
jne 0x58d7b6
lea ecx, [ebp - 0x1c]
mov eax, dword [0x5adfd4]
mov edx, 0x58d960
call fcn.00479540
xor eax, eax
push ebp
push 0x58d743
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 + 0x440]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x58d722
mov eax, dword [ebp - 0x10]
push dword [eax + 0x14]
push 0x58d954
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.004057b8
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x440]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x58d739
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x440]
mov edx, dword [ebp - 0x24]
call fcn.0041f980
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58d7b6
inc dword [ebp - 8]
dec dword [ebp - 0x28]
jne 0x58d3fd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x444]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0xc]
jne 0x58d7f5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x400]
mov edx, dword [eax + 0x67b]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x380]
mov eax, dword [eax + 0x68]
call fcn.0042dc34
jmp 0x58d815
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x400]
mov edx, dword [eax + 0x67f]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x380]
mov eax, dword [eax + 0x68]
call fcn.0042dc34
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [0x5ad6e4]
call fcn.004078c8
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.0047b2c0
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 + 0x444]
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.0040c3d4
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x380]
call fcn.00457dec
lea edx, [ebp - 0x84]
mov eax, dword [0x5ad714]
mov eax, dword [eax]
call fcn.004100e0
lea eax, [ebp - 0x84]
mov edx, dword [0x5adeec]
mov edx, dword [edx]
call fcn.004056f0
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x440]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x45c]
call fcn.004c9430
cmp dword [ebp - 0x14], 0xffffffff
je 0x58d8fb
mov eax, dword [0x5adeb8]
cmp byte [eax + 0xe68], 0
jne 0x58d8fb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x444]
mov edx, dword [ebp - 0x14]
call fcn.0041cf64
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
call fcn.0040b0fc
test al, al
je 0x58d8fb
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
call fcn.004c8fa0
mov eax, dword [ebp - 4]
call fcn.0058d98c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58d945
lea eax, [ebp - 0x84]
call fcn.00405414
lea eax, [ebp - 0x70]
mov edx, 0xb
call fcn.00405438
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00405438
lea eax, [ebp - 0x1c]
call fcn.004073cc
ret