Function at 0x4d8b30
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574be8
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_OFD
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x10]
mov edi, str.backup
call fcn.004f0770
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4d8ba0
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 0x4d8d72
call fcn.00409c54
mov ecx, eax
test ecx, ecx
jne 0x4d8bc2
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d8bd7
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4d8bd9
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, str.backup
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x4d8caa
movzx edi, di
mov ecx, edi
call fcn.00408f5a
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4d8cb9
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 0x4d8cb9
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 0x4d8cb9
movzx edi, word [edx]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4d8c5d
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.0051e916
add esp, 0x10
cmp eax, 0x50
ja case.0x4d8c7f.1
movzx eax, byte [eax + 0x4d8de0]
jmp dword [eax*4 + 0x4d8dd0]
push 0x8007000e
call fcn.0040b4a2
push 0x80070057
call fcn.0040b4a2
cmp edi, dword [esi - 8]
jg case.0x4d8c7f.20
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x4d8cb9
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.004ea730
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 0x4d8d16
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 0x4d8d11
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x4d8d16
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 0x4d8d5e
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d8d5a
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 0x4d8d5e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d8d5c
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