Function at 0x100042b2
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a315
mov eax, dword fs:[0]
push eax
mov eax, 0x2738
call fcn.1000e2f0
mov eax, dword [0x100213d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x308]
test eax, eax
je 0x1000456c
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x10004304
push eax
call sub.MSVCR100.dll_strlen
pop ecx
jmp 0x10004306
xor eax, eax
test eax, eax
je 0x1000456c
push dword [esi + 0x98]
lea eax, [ebp - 0x2720]
push eax
call sub.MSVCR100.dll_strcpy
lea eax, [ebp - 0x2720]
push 0x2e
push eax
call dword [sym.imp.MSVCR100.dll_strrchr]
push dword [esi + 0x98]
mov dword [ebp - 0x2740], eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov eax, dword [esi + 0x308]
mov eax, dword [eax + 0x1c]
add esp, 0x14
test eax, eax
je 0x1000435b
push eax
call sub.MSVCR100.dll_strlen
pop ecx
mov edi, eax
jmp 0x1000435d
xor edi, edi
lea eax, [ebp - 0x2720]
push eax
call sub.MSVCR100.dll_strlen
lea eax, [eax + edi + 0xb]
push eax
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0x308]
pop ecx
push dword [eax + 0x1c]
lea ecx, [ebp - 0x273c]
call fcn.10004283
mov ecx, dword [ebp - 0x272c]
and dword [ebp - 4], 0
push 0x10
pop ebx
test ecx, ecx
je 0x10004440
mov eax, dword [ebp - 0x273c]
cmp dword [ebp - 0x2728], ebx
jae 0x100043b8
lea eax, [ebp - 0x273c]
cmp byte [eax], 0x20
jne 0x1000443c
mov eax, dword [ebp - 0x273c]
cmp dword [ebp - 0x2728], ebx
jae 0x100043d1
lea eax, [ebp - 0x273c]
push eax
lea eax, [ebp - 0x2744]
push eax
lea ecx, [ebp - 0x273c]
call fcn.10003fd3
mov ecx, dword [ebp - 0x272c]
test ecx, ecx
jne 0x100043a4
jmp 0x1000443c
mov eax, dword [ebp - 0x273c]
cmp dword [ebp - 0x2728], ebx
jae 0x10004404
lea eax, [ebp - 0x273c]
cmp byte [eax + ecx - 1], 0x20
jne 0x10004440
mov eax, dword [ebp - 0x273c]
cmp dword [ebp - 0x2728], ebx
jae 0x1000441f
lea eax, [ebp - 0x273c]
lea eax, [eax + ecx - 1]
push eax
lea eax, [ebp - 0x2744]
push eax
lea ecx, [ebp - 0x273c]
call fcn.10003fd3
mov ecx, dword [ebp - 0x272c]
test ecx, ecx
jne 0x100043f0
xor edi, edi
test ecx, ecx
je 0x10004491
mov eax, dword [ebp - 0x273c]
cmp dword [ebp - 0x2728], ebx
jae 0x1000445a
lea eax, [ebp - 0x273c]
movsx eax, byte [eax + edi]
push eax
push 0x1001c454
call dword [sym.imp.MSVCR100.dll_strchr]
pop ecx
pop ecx
test eax, eax
je 0x10004488
mov eax, dword [ebp - 0x273c]
cmp dword [ebp - 0x2728], ebx
jae 0x10004484
lea eax, [ebp - 0x273c]
mov byte [eax + edi], 0x20
inc edi
cmp edi, dword [ebp - 0x272c]
jb 0x10004446
lea eax, [ebp - 0x2720]
push eax
push dword [esi + 0x98]
call sub.MSVCR100.dll_strcpy
xor edi, edi
pop ecx
pop ecx
cmp dword [ebp - 0x2740], edi
je 0x10004514
mov eax, dword [esi + 0x98]
lea ecx, [ebp - 0x2720]
sub eax, ecx
add eax, dword [ebp - 0x2740]
push 0x1001c46c
push eax
call sub.MSVCR100.dll_strcpy
mov eax, dword [ebp - 0x273c]
pop ecx
pop ecx
cmp dword [ebp - 0x2728], ebx
jae 0x100044e4
lea eax, [ebp - 0x273c]
push eax
push dword [esi + 0x98]
call sub.MSVCR100.dll_strcat
push 0x1001c468
push dword [esi + 0x98]
call sub.MSVCR100.dll_strcat
push dword [ebp - 0x2740]
push dword [esi + 0x98]
call sub.MSVCR100.dll_strcat
add esp, 0x18
cmp dword [ebp + 8], edi
je 0x1000455e
mov ecx, esi
call fcn.10002bf6
push dword [esi + 0x98]
lea eax, [ebp - 0x2720]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x1000455e
mov ecx, esi
call fcn.1000197d
push 2
push 0x1001c2f4
mov dword [ebp - 0x2740], eax
call fcn.100016b4
lea eax, [ebp - 0x2740]
push eax
mov ecx, esi
call fcn.1000190b
push edi
push 1
lea ecx, [ebp - 0x273c]
call fcn.10002f50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000dd44
leave
ret 4