Function at 0x1006a3e0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1016838a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10cc
call fcn.10148b90
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x10c8], eax
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0x10e0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
lea ebx, [edi + 0xc]
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x30], eax
call fcn.10017430
lea ecx, [esp + 0x18]
push ecx
lea esi, [esp + 0x2c]
mov dword [esp + 0x10ec], 0
call fcn.100177a0
push 1
push ebx
lea esi, [esp + 0x28]
mov byte [esp + 0x10f0], 1
call fcn.100175b0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x10ec], 2
call fcn.10017430
mov eax, dword [ebx]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
sub eax, 0xc
dec dword [eax]
jne 0x1006a493
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [ebx], eax
inc dword [eax - 0xc]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1006a4b8
lea edx, [eax - 0xc]
test edx, edx
je 0x1006a4b8
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006a4b8
push eax
call esi
add esp, 4
mov byte [esp + 0x10e8], 1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1006a4dc
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1006a4dc
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006a4dc
push eax
call esi
add esp, 4
mov eax, dword [ebx]
mov ecx, dword [eax - 4]
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x1006a4fb
cmp eax, 0x2f
je 0x1006a4fb
push ebx
mov eax, 0x10197e18
call fcn.10016730
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
push ebx
call fcn.10016730
push ebx
lea esi, [esp + 0x28]
call fcn.100177a0
mov byte [esp + 0x10e8], 3
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
mov ecx, edi
mov byte [esp + 0x13], 0
call edx
test al, al
je 0x1006a539
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
mov byte [esp + 0x13], 1
call edx
xor esi, esi
cmp dword [edi + 0xb8], esi
jle 0x1006a567
mov ecx, dword [edi + 0xb4]
mov eax, dword [ebx]
lea ecx, [ecx + esi*4]
mov ecx, dword [ecx]
push eax
call fcn.100a3cd0
test al, al
je 0x1006a70f
inc esi
cmp esi, dword [edi + 0xb8]
jl 0x1006a543
push 0x4c
call fcn.101484dd
lea ebx, [eax + 0xc]
lea edi, [ebx - 0xc]
mov dword [edi], 1
mov dword [ebx - 8], 0x4c
mov dword [ebx - 4], 0
mov dword [ebx], 0x2a
mov dword [esp + 0x34], ebx
mov dword [ebx - 4], 1
push 0
lea edx, [esp + 0x8cc]
push edx
lea eax, [esp + 0x6c8]
push eax
lea ecx, [esp + 0x6bc]
mov byte [esp + 0x10f8], 4
mov edx, dword [esp + 0x28]
push ecx
push edx
call dword [sym.imp.MSVCR100.dll__wsplitpath]
push ebx
lea eax, [esp + 0x8e0]
push eax
lea ecx, [esp + 0x6dc]
push ecx
lea edx, [esp + 0x6d0]
push edx
lea eax, [esp + 0xaec]
push eax
call dword [sym.imp.MSVCR100.dll__wmakepath]
lea eax, [esp + 0xaf0]
add esp, 0x2c
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006a600
push 0
sub eax, edx
sar eax, 1
push 0
push eax
lea esi, [esp + 0x24]
mov dword [esp + 0x2c], eax
call fcn.100163a0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xac4]
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x1006a630
add ebx, 0xfffffff4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov dword [ecx - 4], edx
mov byte [esp + 0x10e8], 3
je 0x1006a667
dec dword [edi]
jne 0x1006a667
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x38]
call fcn.100176f0
mov edi, eax
push 1
lea ecx, [esp + 0x1c]
push ecx
lea esi, [esp + 0x40]
mov byte [esp + 0x10f0], 5
call fcn.100175b0
mov edx, dword [edi]
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 + 0x38]
test eax, eax
je 0x1006a6cc
lea edx, [eax - 0xc]
test edx, edx
je 0x1006a6cc
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006a6cc
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov byte [esp + 0x10e8], 7
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1006a6f4
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1006a6f4
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006a6f4
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 0x1006acd4
cmp byte [esp + 0x298], 0
je 0x1006a779
mov al, 1
jmp 0x1006a78e
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1006a72f
lea edx, [eax - 0xc]
test edx, edx
je 0x1006a72f
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006a72f
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1006a74f
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1006a74f
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006a74f
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1006a76f
lea edx, [eax - 0xc]
test edx, edx
je 0x1006a76f
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006a76f
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 0x80004005
jmp 0x1006ad6a
lea edx, [esp + 0x48]
push edx
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 0x1006acd4
lea eax, [esp + 0x4a2]
push eax
lea ecx, [esp + 0x29e]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x29e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x29a]
mov dword [esp + 0x14], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006a7e0
sub eax, edx
push 0
sar eax, 1
mov ebx, eax
push 0
push ebx
lea esi, [esp + 0x20]
call fcn.100163a0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x29a]
mov esi, ecx
mov edx, eax
sub esi, edx
movzx edx, word [eax]
mov word [eax + esi], dx
add eax, 2
test dx, dx
jne 0x1006a810
mov dword [ecx - 4], ebx
mov byte [esp + 0x10e8], 8
cmp ebx, 2
jne 0x1006a857
cmp word [ecx + 2], 0x3a
jne 0x1006a857
push 0
push 1
lea edi, [ebx + 1]
push edi
lea esi, [esp + 0x20]
call fcn.100163a0
mov ecx, dword [esp + 0x14]
mov eax, 0x5c
mov word [ecx + ebx*2], ax
mov dword [ecx - 4], edi
push 0x104
push ecx
lea ecx, [esp + 0x6c4]
push ecx
call dword [sym.imp.MSVCR100.dll__wfullpath]
lea eax, [esp + 0x6c8]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x1006a880
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006a880
sub eax, edx
push 0
sar eax, 1
mov ebx, eax
push 0
push ebx
lea esi, [esp + 0x20]
call fcn.100163a0
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x6bc]
mov edx, edi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x1006a8b0
mov dword [edi - 4], ebx
mov eax, 4
lea esi, [esp + 0x3c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x10e8], 9
call fcn.10016dc0
mov eax, dword [eax]
test eax, eax
je 0x1006a8f3
push 0x10414ac4
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
jmp 0x1006a8f8
mov eax, SysReAllocString
test eax, eax
mov eax, dword [esp + 0x3c]
sete bl
test eax, eax
je 0x1006a91d
lea edx, [eax - 0xc]
test edx, edx
je 0x1006a91d
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006a91d
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
test bl, bl
je 0x1006a93c
lea eax, [edi - 0xc]
mov byte [esp + 0x10e8], 7
test eax, eax
je 0x1006a6f4
lea eax, [edi - 0xc]
jmp 0x1006a6e6
lea ecx, [esp + 0x14]
push ecx
lea esi, [esp + 0x24]
call fcn.100176f0
mov byte [esp + 0x10e8], 0xa
mov edx, dword [esp + 0x20]
mov ecx, dword [edx - 4]
xor eax, eax
test ecx, ecx
jle 0x1006a96c
nop
cmp word [edx + eax*2], 0x2e
je 0x1006a96f
inc eax
cmp eax, ecx
jl 0x1006a960
or eax, 0xffffffff
push eax
lea edx, [esp + 0x34]
push edx
or eax, 0xffffffff
lea ebx, [esp + 0x28]
call fcn.10016e20
push 1
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x6b4]
mov byte [esp + 0x10f0], 0xb
call fcn.100175b0
mov eax, dword [eax]
inc dword [eax - 0xc]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x10e8], 0xd
mov ebx, dword [eax - 4]
cmp ebx, 2
jne 0x1006a9dd
cmp word [eax + 2], 0x3a
jne 0x1006a9dd
push 0
push 1
lea edi, [ebx + 1]
push edi
lea esi, [esp + 0x28]
call fcn.100163a0
mov eax, dword [esp + 0x1c]
mov ecx, 0x5c
mov word [eax + ebx*2], cx
mov dword [eax - 4], edi
push 0x104
push eax
lea edx, [esp + 0x6c4]
push edx
call dword [sym.imp.MSVCR100.dll__wfullpath]
lea eax, [esp + 0x6c8]
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006aa00
sub eax, edx
push 0
sar eax, 1
mov ebx, eax
push 0
push ebx
lea esi, [esp + 0x28]
call fcn.100163a0
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x6bc]
mov edx, esi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x1006aa30
mov dword [esi - 4], ebx
mov byte [esp + 0x10e8], 0xf
mov eax, dword [esp + 0x6ac]
test eax, eax
je 0x1006aa6d
lea edx, [eax - 0xc]
test edx, edx
je 0x1006aa6d
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006aa6d
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [esi - 4]
movzx eax, word [esi + eax*2 - 2]
cmp eax, 0x5c
je 0x1006aa8e
cmp eax, 0x2f
je 0x1006aa8e
lea eax, [esp + 0x1c]
push eax
mov eax, 0x10197e18
call fcn.10016730
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push edx
call fcn.10016730
push 0
lea eax, [esp + 0x6c0]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x8cc]
push ecx
lea edx, [esp + 0x6c0]
push edx
push eax
call dword [sym.imp.MSVCR100.dll__wsplitpath]
mov edi, dword [esp + 0x44]
push edi
lea ecx, [esp + 0x6d4]
push ecx
lea edx, [esp + 0x8e0]
push edx
lea eax, [esp + 0x6d4]
push eax
lea ecx, [esp + 0xae8]
push ecx
call dword [sym.imp.MSVCR100.dll__wmakepath]
lea eax, [esp + 0xaec]
add esp, 0x28
lea edx, [eax + 2]
jmp 0x1006ab00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006ab00
sub eax, edx
push 0
sar eax, 1
mov ebx, eax
push 0
push ebx
lea esi, [esp + 0x28]
call fcn.100163a0
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0xac4]
mov edx, esi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x1006ab30
mov dword [esi - 4], ebx
mov ebx, dword [esp + 0x14]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1006abdd
lea edx, [esi - 0xc]
test edx, edx
je 0x1006ab73
dec dword [esi - 0xc]
lea eax, [esi - 0xc]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
jne 0x1006ab79
push eax
call esi
add esp, 4
jmp 0x1006ab79
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
test edi, edi
je 0x1006ab92
lea eax, [edi - 0xc]
test eax, eax
je 0x1006ab92
dec dword [edi - 0xc]
lea eax, [edi - 0xc]
jne 0x1006ab92
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1006abae
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1006abae
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006abae
push eax
call esi
add esp, 4
mov byte [esp + 0x10e8], 7
test ebx, ebx
je 0x1006a6f4
lea edx, [ebx - 0xc]
test edx, edx
je 0x1006a6f4
dec dword [ebx - 0xc]
lea eax, [ebx - 0xc]
jne 0x1006a6f4
push eax
call esi
jmp 0x1006a6f1
lea eax, [esi - 0xc]
test eax, eax
je 0x1006abfa
dec dword [esi - 0xc]
lea eax, [esi - 0xc]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
jne 0x1006ac00
push eax
call esi
add esp, 4
jmp 0x1006ac00
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
test edi, edi
je 0x1006ac19
lea ecx, [edi - 0xc]
test ecx, ecx
je 0x1006ac19
dec dword [edi - 0xc]
lea eax, [edi - 0xc]
jne 0x1006ac19
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1006ac35
lea edx, [eax - 0xc]
test edx, edx
je 0x1006ac35
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006ac35
push eax
call esi
add esp, 4
test ebx, ebx
je 0x1006ac4e
lea eax, [ebx - 0xc]
test eax, eax
je 0x1006ac4e
dec dword [ebx - 0xc]
lea eax, [ebx - 0xc]
jne 0x1006ac4e
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x44]
cmp eax, 0xffffffff
je 0x1006ac6a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x1006ac6a
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1006ac86
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1006ac86
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006ac86
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1006aca2
lea edx, [eax - 0xc]
test edx, edx
je 0x1006aca2
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006aca2
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1006a76f
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1006a76f
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006a76f
push eax
call esi
add esp, 4
mov eax, 0x80004005
jmp 0x1006ad6a
cmp byte [esp + 0x13], 0
je 0x1006acee
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
mov eax, dword [ecx + 0x14]
mov edx, dword [edx + 8]
push eax
call edx
mov ecx, dword [esp + 0x44]
cmp ecx, 0xffffffff
je 0x1006ad06
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x1006ad06
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1006ad2a
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1006ad2a
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006ad2a
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push eax
call esi
add esp, 4
jmp 0x1006ad30
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1006ad4c
lea edx, [eax - 0xc]
test edx, edx
je 0x1006ad4c
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006ad4c
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1006ad68
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1006ad68
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006ad68
push eax
call esi
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x10e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10c8]
xor ecx, esp
call fcn.10148524
mov esp, ebp
pop ebp
ret 4