Function at 0x30031343
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 0x300313d2
cmp dword [ebx + 0x21c], esi
je 0x300313d2
mov edi, dword [ebp + 0x3f0]
cmp edi, esi
je 0x300313d2
cmp dword [edi + 0x21c], esi
je 0x300313d2
push 1
lea eax, [ebp - 0x70]
push eax
push edi
call fcn.30030ada
test eax, eax
je 0x300313d2
push dword [ebp - 0x70]
push edi
call fcn.30030b9f
test eax, eax
push dword [ebp - 0x70]
jne 0x300313ec
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp + 0x3e0]
pop edi
pop esi
pop ebx
call fcn.30062195
add ebp, 0x3e4
leave
ret 8
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call fcn.3002ef72
test eax, eax
je 0x300313d2
push edi
call fcn.3002ef72
test eax, eax
je 0x3003157a
mov eax, dword [ebx + 0x21c]
cmp word [eax], si
mov dword [ebp - 0x74], esi
jbe 0x3003157a
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 0x3003154c
mov esi, dword [eax + 0xc]
add esi, dword [ebp - 0x78]
push esi
call fcn.30022ccc
cmp word [eax], 0x5c
jne 0x3003144b
inc eax
inc eax
push eax
add edi, 0xc
push edi
push 0x30003d94
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.30022ccc
cmp word [eax], 0x5c
jne 0x3003147a
inc eax
inc eax
push eax
push edi
push 0x30003d94
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.30054d59
cmp eax, 0xffffffff
je 0x30031561
lea eax, [ebp - 0x6c]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
call esi
test eax, eax
jne 0x300314e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.30022b36
test eax, eax
je 0x30031522
push esi
push 0x300050a4
call fcn.30022c53
pop ecx
pop ecx
jmp 0x30031522
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x80]
call esi
test eax, eax
jne 0x3003151b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.30022b36
test eax, eax
je 0x30031510
push esi
push 0x30005068
call fcn.30022c53
pop ecx
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.300220d1
jmp 0x30031522
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 0x30031425
jmp 0x3003157a
call fcn.30022b36
test eax, eax
je 0x3003157a
push 0x30005038
call fcn.30022bd0
jmp 0x3003157a
call fcn.30022b36
test eax, eax
je 0x30031574
push 0x30004ffc
call fcn.30022bd0
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.30030dc8
mov eax, dword [ebp - 0x7c]
jmp 0x300313d4