Function at 0x519170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x627100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x6e0ea0]
push esi
push edi
mov esi, ecx
mov dword [esp + 8], eax
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0
call fcn.004ec5b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.0041c390
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 2
call fcn.0041c390
mov ecx, dword [esp + 0x38]
push 0
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 3
call fcn.004fbce0
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 4
call fcn.004fd640
mov edi, dword [sym.imp.MSVCRT.dll_free]
test al, al
jne 0x51924f
mov eax, dword [0x6e0ea0]
test eax, eax
jne 0x519204
mov eax, 0x6fdb50
mov edx, dword [0x65329c]
lea ecx, [esp + 0x38]
push edx
push 0
push eax
call fcn.004e9b90
lea eax, [esp + 0x38]
push 0
push eax
push 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 5
call fcn.004fcba0
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x30], 4
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x51924f
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x51924f
push eax
call edi
add esp, 4
lea edx, [esp + 0x38]
push 0
push edx
lea ecx, [esp + 0x10]
call fcn.004fddf0
push eax
mov ecx, esi
mov byte [esp + 0x34], 6
call fcn.004ea610
mov eax, dword [esp + 0x38]
mov byte [esp + 0x30], 4
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x51928c
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x51928c
push eax
call edi
add esp, 4
lea ecx, [esi + 8]
lea edx, [esp + 0x38]
push ecx
push esi
push edx
call fcn.004fc900
add esp, 0xc
add esi, 4
push eax
mov ecx, esi
mov byte [esp + 0x34], 7
call fcn.004ea610
mov eax, dword [esp + 0x38]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5192c9
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x5192c9
push eax
call edi
add esp, 4
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x51934b
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], 8
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x5192f6
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x5192f6
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x519311
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x519311
push eax
call edi
add esp, 4
lea ecx, [esp + 0xc]
call fcn.004ec7b0
mov ecx, dword [esp + 8]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x519336
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x519336
push eax
call edi
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], 9
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x51936f
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x51936f
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x51938a
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x51938a
push eax
call edi
add esp, 4
lea ecx, [esp + 0xc]
call fcn.004ec7b0
mov ecx, dword [esp + 8]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x5193af
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x5193af
push eax
call edi
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4