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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10042b1b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x10053060]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x10053060]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x3c], esi
cmp esi, ebx
je 0x10005481
push 8
pop ecx
mov dword [esp + 0x40], ebx
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x10005481
push esi
lea esi, [esp + 0x78]
call fcn.1000221e
lea eax, [esp + 0x34]
mov ecx, esi
mov dword [esp + 0xa0], ebx
call fcn.1000822e
mov esi, eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x74]
call fcn.1000824e
mov edi, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x74]
call fcn.1000822e
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x84]
push eax
call fcn.1000b79b
add esp, 0x1c
mov dword [esp + 0x14], ebx
mov ebx, 0x100572a0
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0xa8], 1
call fcn.10008880
mov eax, dword [0x10057298]
mov dword [esp + 0x20], eax
mov eax, dword [0x10057280]
lea edi, [esp + 0x1c]
lea esi, [esp + 0x34]
mov dword [esp + 0x1c], eax
call fcn.10009021
test al, al
jne 0x10005335
call fcn.1000928a
mov esi, dword [eax + 0x1c]
mov dword [esp + 0x14], esi
jmp 0x10005339
mov esi, dword [esp + 0x14]
push ebx
mov byte [esp + 0xa4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
mov byte [esp + 0x13], 0
cmp esi, edi
je 0x1000536a
mov eax, dword [esi + 4]
cmp eax, dword [esp + 0x58]
jne 0x10005395
mov eax, dword [esi]
cmp eax, dword [esp + 0x54]
jne 0x10005395
push edi
jmp 0x10005472
push 0x60
mov byte [esp + 0x17], 1
call fcn.1002aeae
mov esi, eax
pop ecx
cmp esi, edi
je 0x1000538f
push 0x60
push edi
push esi
call fcn.1002cd00
add esp, 0xc
mov dword [esp + 0x14], esi
jmp 0x10005395
mov dword [esp + 0x14], edi
mov esi, edi
mov eax, dword [esp + 0x40]
shr eax, 4
and eax, 1
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x54]
mov dword [esi], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 4], eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
xor eax, eax
mov word [esp + 0x24], ax
lea edi, [esp + 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [esp + 0x30]
push eax
movzx eax, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x34]
push eax
movzx eax, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x38]
push eax
push str._04d__02d__02d__02d:_02d:_02d
lea eax, [esi + 8]
push 0x40
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x24
cmp dword [esi + 0x50], 0
jne 0x10005443
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
push dword [esp + 0x3c]
xor edi, edi
or ecx, edi
xor eax, eax
or eax, edx
mov dword [esi + 0x4c], ecx
lea ecx, [esi + 0x58]
mov dword [esi + 0x48], eax
call fcn.1001ee84
pop ecx
mov dword [esi + 0x54], eax
cmp byte [esp + 0x13], 0
je 0x10005470
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0xa4], 2
call fcn.100087c5
push ebx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 1
lea esi, [esp + 0x7c]
call fcn.10002807
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.1002a90b
mov esp, ebp
pop ebp
ret