Function at 0x300307a7
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x3e4]
sub esp, 0x464
mov eax, dword [0x300930a4]
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 0x30030836
cmp dword [ebx + 0x21c], esi
je 0x30030836
mov edi, dword [ebp + 0x3f0]
cmp edi, esi
je 0x30030836
cmp dword [edi + 0x21c], esi
je 0x30030836
push 1
lea eax, [ebp - 0x70]
push eax
push edi
call fcn.3002ff3e
test eax, eax
je 0x30030836
push dword [ebp - 0x70]
push edi
call fcn.30030003
test eax, eax
push dword [ebp - 0x70]
jne 0x30030850
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp + 0x3e0]
pop edi
pop esi
pop ebx
call fcn.3005f839
add ebp, 0x3e4
leave
ret 8
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call fcn.3002e3d6
test eax, eax
je 0x30030836
push edi
call fcn.3002e3d6
test eax, eax
je 0x300309de
mov eax, dword [ebx + 0x21c]
cmp word [eax], si
mov dword [ebp - 0x74], esi
jbe 0x300309de
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 0x300309b0
mov esi, dword [eax + 0xc]
add esi, dword [ebp - 0x78]
push esi
call fcn.3002282c
cmp word [eax], 0x5c
jne 0x300308af
inc eax
inc eax
push eax
add edi, 0xc
push edi
push 0x30003d80
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.3002282c
cmp word [eax], 0x5c
jne 0x300308de
inc eax
inc eax
push eax
push edi
push 0x30003d80
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.300510f3
cmp eax, 0xffffffff
je 0x300309c5
lea eax, [ebp - 0x6c]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
call esi
test eax, eax
jne 0x30030946
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.30022690
test eax, eax
je 0x30030986
push esi
push 0x3000504c
call fcn.300227ad
pop ecx
pop ecx
jmp 0x30030986
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x80]
call esi
test eax, eax
jne 0x3003097f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.30022690
test eax, eax
je 0x30030974
push esi
push 0x30005010
call fcn.300227ad
pop ecx
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.30021c34
jmp 0x30030986
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 0x30030889
jmp 0x300309de
call fcn.30022690
test eax, eax
je 0x300309de
push 0x30004fe0
call fcn.3002272a
jmp 0x300309de
call fcn.30022690
test eax, eax
je 0x300309d8
push 0x30004fa4
call fcn.3002272a
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.3003022c
mov eax, dword [ebp - 0x7c]
jmp 0x30030838