Function at 0x5376c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58cc40
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x240]
xor edi, edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], edi
mov esi, 1
mov dword [esp + 0x238], esi
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [ebp], eax
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
mov dword [esp + 0x18], esi
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x206
lea eax, [esp + 0x2a]
push edi
mov byte [esp + 0x240], 2
push eax
mov word [esp + 0x30], di
call fcn.005695a0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x28]
push ecx
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [esp + 0x244]
cmp dword [edi - 0xc], 0
jl 0x53786f
push 0x5b26b0
push edi
call fcn.0056685f
add esp, 8
test eax, eax
je 0x53786f
sub eax, edi
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x53786f
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esi + 3]
lea esi, [esp + 0x1c]
lea edx, [esp + 0x244]
call fcn.0047db50
mov byte [esp + 0x238], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x53783e
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x537827
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x537827
call fcn.00481090
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x53781b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x244], edi
jmp 0x53783e
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x248]
call fcn.00480ff0
mov edi, dword [esp + 0x244]
mov byte [esp + 0x238], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53778e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x53778e
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x537876
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x24]
mov ebx, eax
push ecx
mov eax, ebp
call fcn.00480ff0
push 1
push 0x5aeb10
push ebp
call fcn.00473c80
mov eax, dword [edi - 0xc]
push eax
push edi
push ebp
call fcn.00473c80
mov byte [esp + 0x238], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5378d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x238], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5378f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00564207
add esp, 0x228
ret 8