Function at 0x100781d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10163439
mov eax, dword fs:[0]
push eax
sub esp, 0x6a8
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x6a0], eax
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0x6b8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [esi + 0xb0], 0
mov dword [esp + 0x2c], esi
jne 0x1007822c
mov eax, 0x80040573
jmp 0x10078781
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov byte [esp + 0x13], 0
call edx
test al, al
je 0x1007824e
mov ecx, dword [esi + 0xb0]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov byte [esp + 0x13], 1
call edx
mov ebx, esi
push 1
add ebx, 0xc
push ebx
lea esi, [esp + 0x40]
call fcn.100175b0
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c4], 0
call fcn.10017430
mov byte [esp + 0x6c0], 2
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1007829c
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1007829c
add eax, 0xfffffff4
dec dword [eax]
jne 0x1007829c
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 4]
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x100782c1
cmp eax, 0x2f
je 0x100782c1
lea edx, [esp + 0x18]
push edx
mov eax, 0x10197e18
call fcn.10016730
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
call fcn.10016730
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 0xb0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [esp + 0x18]
push edx
call eax
test eax, eax
jns 0x10078749
lea ecx, [esp + 0x18]
push ecx
lea esi, [esp + 0x28]
call fcn.100177a0
push ebx
lea esi, [esp + 0x24]
mov byte [esp + 0x6c4], 3
call fcn.100177a0
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c4], 4
call fcn.10017430
push 0
push 0
mov bl, 5
mov byte [esp + 0x6c8], bl
push 1
lea esi, [esp + 0x20]
mov dword [esp + 0x20], 0
call fcn.100163a0
mov eax, dword [esp + 0x14]
mov edx, 0x2a
mov word [eax], dx
mov dword [eax - 4], 1
mov ecx, esi
lea esi, [esp + 0x1c]
mov byte [esp + 0x6c0], 6
call fcn.100178e0
mov byte [esp + 0x6c0], bl
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1007838a
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1007838a
add eax, 0xfffffff4
dec dword [eax]
jne 0x1007838a
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea edx, [esp + 0x1c]
push edx
lea esi, [esp + 0x44]
call fcn.100176f0
mov ebx, eax
push 1
lea eax, [esp + 0x20]
push eax
lea esi, [esp + 0x38]
mov byte [esp + 0x6c8], 7
call fcn.100175b0
mov edx, dword [ebx]
mov ecx, dword [eax]
lea ebx, [esp + 0x44]
mov dword [esp + 0x44], 0xffffffff
mov byte [esp + 0x298], 1
call fcn.10023da0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x100783ef
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x100783ef
add eax, 0xfffffff4
dec dword [eax]
jne 0x100783ef
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov byte [esp + 0x6c0], 9
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10078417
lea edx, [eax - 0xc]
test edx, edx
je 0x10078417
add eax, 0xfffffff4
dec dword [eax]
jne 0x10078417
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [esp + 0x44]
cmp ecx, 0xffffffff
je 0x100786df
cmp byte [esp + 0x298], 0
je 0x10078432
mov al, 1
jmp 0x10078447
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, dword [esp + 0x44]
test eax, eax
setne al
mov byte [esp + 0x298], 0
test al, al
je 0x100786c7
lea ecx, [esp + 0x4a2]
push ecx
lea edx, [esp + 0x29e]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x29e]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea edi, [esp + 0x29e]
lea eax, [esp + 0x18]
call fcn.100164f0
mov eax, 4
lea esi, [esp + 0x34]
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c0], 0xa
call fcn.10016dc0
mov eax, dword [eax]
test eax, eax
je 0x100784c3
push 0x10414ac4
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
jmp 0x100784c8
mov eax, SysReAllocString
test eax, eax
mov eax, dword [esp + 0x34]
sete bl
test eax, eax
je 0x100784ed
lea edx, [eax - 0xc]
test edx, edx
je 0x100784ed
add eax, 0xfffffff4
dec dword [eax]
jne 0x100784ed
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
test bl, bl
je 0x1007850f
mov byte [esp + 0x6c0], 9
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10078417
lea ecx, [eax - 0xc]
test ecx, ecx
jmp 0x10078404
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
test eax, eax
je 0x10078532
push eax
push edi
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
test eax, eax
je 0x10078532
sub eax, edi
sar eax, 1
mov ebx, eax
jmp 0x10078535
or ebx, 0xffffffff
mov eax, ebx
lea esi, [esp + 0x28]
lea ecx, [esp + 0x14]
call fcn.10016df0
mov edx, esi
mov byte [esp + 0x6c0], 0xb
mov eax, dword [esp + 0x24]
push edx
call fcn.10016730
mov eax, dword [esp + 0x20]
mov eax, dword [eax - 4]
add ebx, eax
push ebx
lea ecx, [esp + 0x40]
push ecx
or eax, 0xffffffff
lea ebx, [esp + 0x1c]
call fcn.10016e20
mov edx, esi
mov byte [esp + 0x6c0], 0xc
mov eax, dword [eax]
push edx
call fcn.10016730
mov byte [esp + 0x6c0], 0xb
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100785b1
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x100785b1
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add eax, 0xfffffff4
dec dword [eax]
jne 0x100785b7
push eax
call ebx
add esp, 4
jmp 0x100785b7
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov esi, dword [esp + 0x28]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x10078603
test esi, esi
je 0x100785e0
lea edx, [esi - 0xc]
test edx, edx
je 0x100785e0
dec dword [esi - 0xc]
lea eax, [esi - 0xc]
jne 0x100785e0
push eax
call ebx
add esp, 4
mov byte [esp + 0x6c0], 9
test edi, edi
je 0x10078417
lea eax, [edi - 0xc]
test eax, eax
je 0x10078417
lea eax, [edi - 0xc]
jmp 0x10078409
test esi, esi
je 0x1007861c
lea ecx, [esi - 0xc]
test ecx, ecx
je 0x1007861c
dec dword [esi - 0xc]
lea eax, [esi - 0xc]
jne 0x1007861c
push eax
call ebx
add esp, 4
test edi, edi
je 0x10078635
lea edx, [edi - 0xc]
test edx, edx
je 0x10078635
dec dword [edi - 0xc]
lea eax, [edi - 0xc]
jne 0x10078635
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0x44]
cmp eax, 0xffffffff
je 0x10078651
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x10078651
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1007866d
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1007866d
add eax, 0xfffffff4
dec dword [eax]
jne 0x1007866d
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0x20]
lea edx, [eax - 0xc]
test edx, edx
je 0x10078685
add eax, 0xfffffff4
dec dword [eax]
jne 0x10078685
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100786a1
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x100786a1
add eax, 0xfffffff4
dec dword [eax]
jne 0x100786a1
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100786bd
lea edx, [eax - 0xc]
test edx, edx
je 0x100786bd
add eax, 0xfffffff4
dec dword [eax]
jne 0x100786bd
push eax
call ebx
add esp, 4
mov eax, 0x80004005
jmp 0x10078781
cmp ecx, 0xffffffff
je 0x100786df
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x100786df
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10078703
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10078703
add eax, 0xfffffff4
dec dword [eax]
jne 0x10078703
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push eax
call esi
add esp, 4
jmp 0x10078709
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10078725
lea edx, [eax - 0xc]
test edx, edx
je 0x10078725
add eax, 0xfffffff4
dec dword [eax]
jne 0x10078725
push eax
call esi
add esp, 4
mov byte [esp + 0x6c0], 2
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10078749
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10078749
add eax, 0xfffffff4
dec dword [eax]
jne 0x10078749
push eax
call esi
add esp, 4
cmp byte [esp + 0x13], 0
je 0x1007875f
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [ecx + 0x14]
mov edx, dword [edx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1007877f
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1007877f
add eax, 0xfffffff4
dec dword [eax]
jne 0x1007877f
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x6b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6a0]
xor ecx, esp
call fcn.10148524
mov esp, ebp
pop ebp
ret 4