Function at 0x5c9250
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x70efb8
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
push edi
mov edi, dword [esp + 0x64]
mov esi, ecx
cmp edi, 1
jne 0x5c9305
mov al, byte [esp + 0x60]
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], al
call fcn.00407e50
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x60], 0
call fcn.004558b0
push eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esi + 0xc]
mov byte [esp + 0x60], 1
call fcn.00455780
mov esi, dword [eax]
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 0
call fcn.004d6390
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00407e50
mov ecx, dword [0x71eb00]
mov edx, dword [esp + 0x68]
push ecx
push 0
push edx
lea ecx, [esi + 0x1c]
call fcn.00407c50
pop edi
pop esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret 0xc
mov eax, dword [esp + 0x60]
push ebx
lea ecx, [esp + 0x68]
push eax
push ecx
lea ecx, [esi + 0xc]
call fcn.005ca510
mov esi, dword [esp + 0x6c]
push 0
lea ecx, [esp + 0x18]
mov dl, byte [esi]
mov byte [esp + 0x18], dl
call fcn.00407e50
mov eax, dword [0x71eb00]
lea ecx, [esp + 0x14]
push eax
push 0
push esi
call fcn.00407c50
cmp edi, 2
mov dword [esp + 0x5c], 2
jne 0x5c9392
push 0x20
push 1
lea ecx, [esp + 0x1c]
call fcn.0040cb30
mov al, byte [0x83e218]
test al, al
jne 0x5c936c
mov ecx, 0x83e208
call fcn.005c0bd0
mov ecx, dword [0x71eb00]
push ecx
push 0
push 0x83e208
lea ecx, [esp + 0x20]
call fcn.0040cc00
push 0x20
push 1
lea ecx, [esp + 0x1c]
call fcn.0040cb30
jmp 0x5c93fd
mov edi, 0x80e9e0
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x71eb00]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, esi
ja 0x5c93b8
call fcn.00674664
test esi, esi
jbe 0x5c93fd
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebx, [eax + esi]
push ebx
call fcn.00402d20
test al, al
je 0x5c93fd
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov esi, 0x80e9e0
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408980
mov eax, dword [0x71eb00]
mov ecx, dword [esp + 0x68]
push eax
add ecx, 0x1c
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.0040cc00
mov edx, dword [esp + 0x68]
pop ebx
mov ecx, dword [edx + 0x20]
lea eax, [edx + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 8]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x1c], ecx
je 0x5c947e
mov cl, byte [eax - 1]
test cl, cl
je 0x5c9474
cmp cl, 0xff
je 0x5c9474
dec cl
pop edi
mov byte [eax - 1], cl
pop esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret 0xc
dec eax
push eax
call fcn.00652870
add esp, 4
mov ecx, dword [esp + 0x50]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x54
ret 0xc