Function at 0x401028
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
xor esi, esi
dec esi
mov dword [eax + 8], esi
mov dword [eax + 4], 0x402e30
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
push 1
call dword [sym.imp.KERNEL32.dll_SetProcessDEPPolicy]
push esi
call dword [sym.imp.KERNEL32.dll_AttachConsole]
mov eax, dword [0x7f20d4]
mov ecx, dword [0x7f325c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40138c
mov eax, dword [0x7f20cc]
mov ecx, 0x7f20bc
cmp dword [0x7f20d0], 8
jb 0x40109c
mov ecx, dword [0x7f20bc]
mov dword [ebp - 0x10], 0xffffffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
xor edi, edi
cmp esi, dword [0x7f20cc]
jb 0x401107
add esi, 0x104
mov ebx, 0x7f20bc
mov ecx, 0x7f20bc
push edi
push esi
call fcn.00404c5a
cmp dword [0x7f20d0], 8
jb 0x4010df
mov ebx, dword [0x7f20bc]
push dword [0x7f20cc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
mov ecx, 0x7f20bc
push edi
push eax
call fcn.00404c5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4010b1
jmp 0x401114
mov ecx, 0x7f20bc
push 0
push esi
call fcn.00404c5a
xorps xmm0, xmm0
movsd qword [ebp - 0x60], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x70], xmm0
mov eax, dword [0x7f20cc]
mov edx, 0x7f20bc
cmp dword [0x7f20d0], 8
jb 0x40113c
mov edx, dword [0x7f20bc]
lea esi, [ebp - 0x70]
mov ecx, esi
push eax
push edx
call fcn.00405036
movsd xmm0, qword [esi + 0x10]
lea ecx, [ebp - 0x58]
movsd qword [ecx + 0x10], xmm0
movups xmm0, xmmword [esi]
movups xmmword [ecx], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], 0
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x38]
push eax
call fcn.004035c4
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
jb 0x40118a
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], 2
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x4011b3
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x38]
call fcn.00404bbf
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], 0
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4011e2
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x58]
call fcn.00404bbf
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], 0
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x401211
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x70]
call fcn.00404bbf
add esp, 8
mov eax, dword [0x7f1f88]
mov ecx, dword [0x7f325c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4013ef
mov dword [ebp - 0x10], 3
push 0x7f1f78
call fcn.00475492
add esp, 4
call fcn.0040365e
mov esi, eax
lea edx, [eax + 0x64]
mov eax, dword [eax + 0x74]
cmp dword [esi + 0x78], 8
mov dword [ebp - 0x40], edx
jb 0x40125f
mov edx, dword [esi + 0x64]
lea ecx, [ebp - 0x38]
mov dword [ecx], edx
mov dword [ecx + 4], eax
push str..bak.exe
call fcn.00422454
test al, al
mov dword [ebp - 0x20], esi
jne 0x401282
mov ecx, esi
call fcn.0040371e
mov esi, dword [ebp - 0x20]
lea ecx, [esi + 0x80]
mov dword [ebp - 0x3c], ecx
call fcn.0040389c
mov ecx, dword [ebp - 0x20]
test al, al
jne 0x4012ad
mov eax, ecx
add eax, 0x8c
mov edx, dword [ecx + 0x80]
mov ecx, dword [ebp - 0x3c]
push 1
push eax
call dword [edx + 0x3c]
xorps xmm0, xmm0
lea edi, [ebp - 0x38]
movsd qword [edi + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov esi, dword [ebp + 0x10]
push esi
call fcn.007149b0
add esp, 4
mov ecx, edi
push eax
push esi
call fcn.0041015e
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], 5
push 1
lea eax, [ebp - 0x38]
push eax
call fcn.00403920
mov edi, eax
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x4012ff
inc eax
push eax
push dword [ebp - 0x38]
call fcn.00404bbf
add esp, 8
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x74]
cmp dword [esi + 0x78], 8
mov edx, dword [ebp - 0x40]
jb 0x401311
mov edx, dword [esi + 0x64]
lea ecx, [ebp - 0x38]
mov dword [ecx], edx
mov dword [ecx + 4], eax
push str..bak.exe
call fcn.00422454
test al, al
jne 0x401377
cmp byte [esi + 0x438], 0
je 0x401377
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], esp
push eax
sub esp, 0x44
mov eax, esp
xor ecx, ecx
mov dword [eax + 0x40], ecx
xorps xmm0, xmm0
movups xmmword [eax + 0x30], xmm0
mov edx, 0xf
mov dword [eax + 0x44], edx
movups xmmword [eax + 0x18], xmm0
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
movups xmmword [eax], xmm0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov dword [ebp - 0x10], 3
mov ecx, esi
call fcn.00403ae2
mov esp, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
push 0x7f20d4
call fcn.0053e579
add esp, 4
cmp dword [0x7f20d4], 0xffffffff
jne 0x401083
xorps xmm0, xmm0
movsd qword [0x7f20cc], xmm0
xorps xmm0, xmm0
movups xmmword [0x7f20bc], xmm0
xor eax, eax
mov dword [ebp - 0x10], eax
mov ecx, 0x7f20bc
push 0x104
push eax
call fcn.00404c88
push 0x4017ac
call fcn.0053e73b
add esp, 4
push 0x7f20d4
call fcn.0053e5f3
add esp, 4
jmp 0x401083
push 0x7f1f88
call fcn.0053e579
add esp, 4
cmp dword [0x7f1f88], 0xffffffff
jne 0x401232
mov dword [ebp - 0x10], 4
xor eax, eax
mov ecx, 0x7f1f78
push 0x4017b6
push eax
push eax
push eax
call fcn.004753e0
push 0x7f1f88
call fcn.0053e5f3
add esp, 4
jmp 0x401232