Function at 0x4d8030
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573768
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 edi, edx
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov edx, str.UserData
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x10]
call fcn.004d7d20
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4d809d
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]
test edi, edi
je 0x4d8279
call fcn.00409c54
mov ecx, eax
test ecx, ecx
jne 0x4d80ba
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d80cf
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4d80d1
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
test edi, 0xffff0000
jne 0x4d81a2
movzx edi, di
mov ecx, edi
call fcn.00408f5a
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4d81c0
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 0x4d81c0
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 0x4d81c0
movzx edi, word [edx]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4d8155
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.0x4d8177.1
movzx eax, byte [eax + 0x4d82e4]
jmp dword [eax*4 + 0x4d82d4]
push 0x8007000e
call fcn.0040b4a2
push 0x80070057
call fcn.0040b4a2
cmp edi, dword [esi - 8]
jg case.0x4d8177.20
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x4d81c0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d81a7
sub ecx, edx
sar ecx, 1
push ecx
push edi
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 0x4d821d
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 0x4d8218
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x4d821d
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 0x4d8265
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d8261
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 0x4d8265
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d8263
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