Function at 0x4fdb20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x624bb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0xc], ebp
mov eax, dword [esp + 0x2c]
push edi
push eax
mov edi, ecx
call fcn.004fe600
mov ecx, dword [0x6e0ea0]
add esp, 4
mov ebx, eax
mov dword [esp + 0x30], ecx
mov al, byte [esp + 0x2c]
mov dword [esp + 0x20], ebp
test al, 1
je 0x4fdbdd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
call fcn.004fb8c0
push ebx
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x28], 1
push eax
call fcn.004fca60
add esp, 0xc
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 2
call fcn.0047fb30
mov ecx, dword [esp + 0x10]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x4fdbb8
dec ecx
cmp ecx, ebp
mov dword [eax], ecx
jne 0x4fdbb8
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [esp + 0x14]
mov byte [esp + 0x20], 0
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x4fdbdd
dec ecx
cmp ecx, ebp
mov dword [eax], ecx
jne 0x4fdbdd
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea eax, [ebx - 1]
cmp eax, 3
ja case.0x4fdbe5.1
jmp dword [eax*4 + 0x4fddd0]
mov al, byte [edi + 0x1c]
test al, al
je 0x4fdc37
push 0x3a
jmp 0x4fdc2c
mov al, byte [edi + 0x1c]
test al, al
jne 0x4fdc37
push 0x5c
jmp 0x4fdc2c
mov eax, dword [esp + 0x2c]
and al, 0xfd
mov dword [esp + 0x2c], eax
jmp 0x4fdc37
mov al, byte [edi + 0x1c]
test al, al
jne 0x4fdc37
cmp dword [edi + 8], ebp
je 0x4fdc2a
mov ecx, dword [edi + 0xc]
push 1
push 0x7e
call fcn.0047d080
test al, al
jne 0x4fdc37
push 0x2f
lea ecx, [esp + 0x34]
push 1
call fcn.004e9db0
cmp dword [edi + 8], ebp
jne 0x4fdc67
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.004698b0
mov ecx, dword [esp + 0x30]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x4fddb6
dec ecx
cmp ecx, ebp
jmp 0x4fdda8
cmp ebx, 4
jne 0x4fdc79
push 0x5b
push 1
lea ecx, [esp + 0x38]
call fcn.004e9db0
mov eax, dword [edi + 8]
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x4fdd5d
lea eax, [ebx - 1]
cmp eax, 3
ja case.0x4fdc90.1
jmp dword [eax*4 + 0x4fdde0]
mov ecx, dword [edi + 0xc]
lea esi, [ebp*4]
add ecx, esi
push 0x6c4df0
call fcn.004eb1b0
test eax, eax
je 0x4fdd50
jmp 0x4fdcbe
lea esi, [ebp*4]
mov ecx, dword [edi + 0xc]
push 0x6e3b38
add ecx, esi
call fcn.004eb1b0
test eax, eax
je 0x4fdcef
mov eax, dword [edi + 0xc]
add eax, esi
jmp 0x4fdcde
mov edx, dword [edi + 0xc]
lea eax, [edx + ebp*4]
mov eax, dword [eax]
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.004ea760
test byte [esp + 0x2c], 2
jne 0x4fdcff
mov eax, dword [esp + 0x10]
dec eax
cmp ebp, eax
je 0x4fdd50
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.004fd7c0
add esp, 8
mov esi, eax
mov ecx, esi
mov byte [esp + 0x20], 3
call fcn.004e9cc0
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
add eax, 0xfffffff4
mov byte [esp + 0x20], 0
mov si, word [edx]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4fdd44
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4fdd44
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
push 1
lea ecx, [esp + 0x38]
call fcn.004e9db0
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jb 0x4fdc88
cmp ebx, 4
jne 0x4fdd6f
push 0x5d
push 1
lea ecx, [esp + 0x38]
call fcn.004e9db0
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4fdd88
mov ecx, dword [0x6e0ea0]
mov dword [esi], ecx
jmp 0x4fdd96
mov dword [esi], ecx
mov eax, dword [ecx - 0xc]
cmp eax, 0xffffffff
je 0x4fdd96
inc eax
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x30]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x4fddb6
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4fddb6
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc