Function at 0x100051bc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10042f73
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x10053060]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x10053060]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x1000547b
and dword [esp + 0x44], eax
push 8
pop ecx
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x44]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1000547b
push dword [esp + 0x58]
lea esi, [esp + 0x98]
push dword [esp + 0x60]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push str._08x_08x_08x_08x
call fcn.1000e522
add esp, 0x14
and dword [esp + 0xc0], 0
push ebx
lea esi, [esp + 0x7c]
call fcn.10002214
lea eax, [esp + 0x38]
mov ecx, esi
mov byte [esp + 0xc0], 1
call fcn.10008242
mov esi, eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x78]
call fcn.10008262
mov edi, eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x78]
call fcn.10008242
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x88]
push eax
call fcn.1000b8b5
and dword [esp + 0x34], 0
add esp, 0x1c
mov ebx, 0x100572c0
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0xc8], 2
call fcn.10008894
mov eax, dword [0x100572b8]
mov dword [esp + 0x24], eax
mov eax, dword [0x100572a0]
lea edi, [esp + 0x20]
lea esi, [esp + 0x38]
mov dword [esp + 0x20], eax
call fcn.100092c5
test al, al
jne 0x10005312
call fcn.1001ea4e
mov edi, dword [eax + 0x1c]
mov dword [esp + 0x18], edi
jmp 0x10005316
mov edi, dword [esp + 0x18]
push ebx
mov byte [esp + 0xc4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x17], 0
test edi, edi
je 0x10005345
lea ecx, [esp + 0x94]
mov eax, edi
call fcn.1000b86b
test al, al
je 0x10005374
jmp 0x10005459
push 0x78
mov byte [esp + 0x1b], 1
call fcn.1002b345
mov esi, eax
pop ecx
test esi, esi
je 0x1000536c
call fcn.100021b9
push 0x78
push 0
push esi
call fcn.1002d190
add esp, 0xc
jmp 0x1000536e
xor esi, esi
mov dword [esp + 0x18], esi
mov edi, esi
mov eax, dword [esp + 0x44]
shr eax, 4
and eax, 1
push 0xffffffffffffffff
mov dword [edi + 0x68], eax
push 0
lea eax, [esp + 0x9c]
push eax
mov ecx, edi
call fcn.100025d5
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
xor eax, eax
mov word [esp + 0x28], ax
lea edi, [esp + 0x2a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [esp + 0x34]
push eax
movzx eax, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x38]
mov edi, dword [esp + 0x20]
push eax
movzx eax, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3c]
push eax
push str._04d__02d__02d__02d:_02d:_02d
lea eax, [edi + 0x1c]
push 0x40
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x24
cmp dword [edi + 0x68], 0
jne 0x1000542c
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
push dword [esp + 0x40]
xor esi, esi
or ecx, esi
xor eax, eax
or eax, edx
mov dword [edi + 0x64], ecx
lea ecx, [edi + 0x70]
mov dword [edi + 0x60], eax
call fcn.1001fecb
pop ecx
mov dword [edi + 0x6c], eax
cmp byte [esp + 0x17], 0
je 0x10005459
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0xc4], 3
call fcn.100087d9
push ebx
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 1
lea esi, [esp + 0x80]
call fcn.100027cd
push 0
push 1
lea ecx, [esp + 0x9c]
call fcn.100026d5
mov eax, edi
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.1002ada2
mov esp, ebp
pop ebp
ret