Function at 0x3003165b
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x3e4]
sub esp, 0x464
mov eax, dword [section..cdata]
push ebx
mov ebx, dword [ebp + 0x3ec]
push esi
push edi
xor esi, esi
mov dword [ebp + 0x3e0], eax
xor eax, eax
mov word [ebp - 0x6c], si
mov ecx, 0x81
lea edi, [ebp - 0x6a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
cmp ebx, esi
mov ecx, 0x91
lea edi, [ebp + 0x19c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x70], esi
je 0x300316ea
cmp dword [ebx + 0x21c], esi
je 0x300316ea
mov edi, dword [ebp + 0x3f0]
cmp edi, esi
je 0x300316ea
cmp dword [edi + 0x21c], esi
je 0x300316ea
push 1
lea eax, [ebp - 0x70]
push eax
push edi
call fcn.30030df2
test eax, eax
je 0x300316ea
push dword [ebp - 0x70]
push edi
call fcn.30030eb7
test eax, eax
push dword [ebp - 0x70]
jne 0x30031704
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp + 0x3e0]
pop edi
pop esi
pop ebx
call fcn.30063125
add ebp, 0x3e4
leave
ret 8
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call fcn.3002f274
test eax, eax
je 0x300316ea
push edi
call fcn.3002f274
test eax, eax
je 0x30031892
mov eax, dword [ebx + 0x21c]
cmp word [eax], si
mov dword [ebp - 0x74], esi
jbe 0x30031892
mov ebx, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov dword [ebp - 0x78], esi
mov ecx, dword [edi + 0x21c]
movzx ecx, word [ecx]
cmp ecx, dword [edi + 4]
jae 0x30031864
mov esi, dword [eax + 0xc]
add esi, dword [ebp - 0x78]
push esi
call fcn.30022e0b
cmp word [eax], 0x5c
jne 0x30031763
inc eax
inc eax
push eax
add edi, 0xc
push edi
push 0x30003d8c
lea eax, [ebp - 0x6c]
push 0x104
push eax
call ebx
lea eax, [esi + 0x208]
add esp, 0x14
push eax
mov dword [ebp - 0x80], eax
call fcn.30022e0b
cmp word [eax], 0x5c
jne 0x30031792
inc eax
inc eax
push eax
push edi
push 0x30003d8c
lea eax, [ebp + 0x19c]
push 0x104
push eax
call ebx
mov eax, dword [ebp + 0x3f0]
mov eax, dword [eax + 0x21c]
add esp, 0x14
lea ecx, [ebp - 0x6c]
push ecx
push eax
call fcn.30055b6b
cmp eax, 0xffffffff
je 0x30031879
lea eax, [ebp - 0x6c]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
call esi
test eax, eax
jne 0x300317fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.30022c75
test eax, eax
je 0x3003183a
push esi
push 0x300050a4
call fcn.30022d92
pop ecx
pop ecx
jmp 0x3003183a
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x80]
call esi
test eax, eax
jne 0x30031833
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.30022c75
test eax, eax
je 0x30031828
push esi
push 0x30005068
call fcn.30022d92
pop ecx
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.300221f9
jmp 0x3003183a
mov dword [ebp - 0x7c], 1
mov eax, dword [ebp + 0x3ec]
mov eax, dword [eax + 0x21c]
movzx ecx, word [eax]
inc dword [ebp - 0x74]
add dword [ebp - 0x78], 0x44c
cmp dword [ebp - 0x74], ecx
mov edi, dword [ebp + 0x3f0]
jb 0x3003173d
jmp 0x30031892
call fcn.30022c75
test eax, eax
je 0x30031892
push 0x30005038
call fcn.30022d0f
jmp 0x30031892
call fcn.30022c75
test eax, eax
je 0x3003188c
push 0x30004ffc
call fcn.30022d0f
mov edi, dword [ebp + 0x3f0]
push dword [edi + 0x214]
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call esi
mov edi, dword [ebp + 0x3ec]
push dword [edi + 0x214]
call esi
push edi
call fcn.300310e0
mov eax, dword [ebp - 0x7c]
jmp 0x300316ec