Function at 0x4d8b20
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5b3074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov edx, str.MasterPDFData
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x10]
mov edi, str.backup
call fcn.004f0760
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4d8b90
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor eax, eax
cmp eax, str.backup
je 0x4d8d62
call fcn.00409c54
mov ecx, eax
test ecx, ecx
jne 0x4d8bb2
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d8bc7
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4d8bc9
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, str.backup
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x4d8c9a
movzx edi, di
mov ecx, edi
call fcn.00408f5a
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4d8ca9
mov ecx, edi
shr ecx, 4
inc ecx
push 6
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4d8ca9
mov ecx, dword [ebp - 0x18]
mov edx, eax
push edi
call fcn.00408f9e
mov edx, eax
add esp, 4
mov dword [ebp - 0x18], edx
test edx, edx
je 0x4d8ca9
movzx edi, word [edx]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4d8c4d
push edi
lea ecx, [ebp - 0x14]
call fcn.00409225
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
movzx ecx, word [edx]
lea eax, [edx + 2]
push ecx
push eax
push edi
push esi
call fcn.0051e906
add esp, 0x10
cmp eax, 0x50
ja case.0x4d8c6f.1
movzx eax, byte [eax + 0x4d8dd0]
jmp dword [eax*4 + 0x4d8dc0]
push 0x8007000e
call fcn.0040b4a2
push 0x80070057
call fcn.0040b4a2
cmp edi, dword [esi - 8]
jg case.0x4d8c6f.20
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x4d8ca9
push 6
push str.backup
lea ecx, [ebp - 0x14]
call fcn.00409323
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x10]
mov ecx, ebx
call fcn.004ea720
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 4
add ecx, 0xfffffff0
mov eax, esi
lock xadd dword [ecx + 0xc], eax
dec eax
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x4d8d06
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x18], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d8d01
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x4d8d06
mov ecx, edx
call dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x4d8d4e
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d8d4a
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00408e8d
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [ebx], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d8d4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d8d4c
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret