Function at 0x4d7a10
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5736e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5b1074]
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.004ef550
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4d7a80
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 0x4d7c52
call fcn.00409c54
mov ecx, eax
test ecx, ecx
jne 0x4d7aa2
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d7ab7
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4d7ab9
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, str.backup
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x4d7b8a
movzx edi, di
mov ecx, edi
call fcn.00408f5a
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4d7b99
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 0x4d7b99
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 0x4d7b99
movzx edi, word [edx]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4d7b3d
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.0051d6f6
add esp, 0x10
cmp eax, 0x50
ja case.0x4d7b5f.1
movzx eax, byte [eax + 0x4d7cc0]
jmp dword [eax*4 + 0x4d7cb0]
push 0x8007000e
call fcn.0040b4a2
push 0x80070057
call fcn.0040b4a2
cmp edi, dword [esi - 8]
jg case.0x4d7b5f.20
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x4d7b99
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.004e9520
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 0x4d7bf6
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 0x4d7bf1
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x4d7bf6
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 0x4d7c3e
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d7c3a
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 0x4d7c3e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d7c3c
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