Function at 0x405590
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x44c05e
mov eax, dword fs:[0]
push eax
sub esp, 0x580
mov eax, dword [0x45e520]
xor eax, esp
mov dword [esp + 0x578], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0x594]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5a4]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov esi, ecx
mov ebp, 0xf
push eax
lea ecx, [esp + 0xf4]
mov dword [esp + 0x10c], ebp
mov dword [esp + 0x108], ebx
mov byte [esp + 0xf8], bl
call fcn.00402280
push 0xffffffffffffffff
mov dword [esp + 0x5a0], ebx
push ebx
push esi
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.00402280
mov byte [esp + 0x59c], 1
mov eax, dword [0x462410]
mov edx, dword [eax + 0xc]
mov ecx, 0x462410
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x5a0], 3
call fcn.00404cc0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x5a0], 4
call fcn.00411230
mov byte [esp + 0x59c], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x103
lea ecx, [esp + 0x489]
push ebx
push ecx
mov byte [esp + 0x490], bl
call fcn.00436440
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x490]
mov ecx, eax
add esp, 0xc
mov esi, 0x104
sub edx, ecx
mov cl, byte [eax + edx]
cmp cl, bl
je 0x4056e6
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x4056d3
jmp 0x4056ea
cmp esi, ebx
jne 0x4056ed
sub eax, 1
mov byte [eax], bl
sub esp, 0x1c
mov esi, esp
lea eax, [esp + 0x4a0]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov dword [esp + 0x38], esp
mov byte [esi + 4], bl
lea edi, [eax + 1]
jmp 0x405710
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405710
sub eax, edi
push eax
lea edx, [esp + 0x4a4]
push edx
mov ecx, esi
call fcn.004024f0
sub esp, 0x1c
mov byte [esp + 0x5d4], 5
mov ecx, esp
mov dword [esp + 0x50], esp
push 4
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x4529b8
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0x5d4], 3
call fcn.004041e0
lea eax, [esp + 0x484]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x405819
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 4
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.fail
mov byte [ecx + 4], bl
call fcn.004024f0
sub esp, 0x1c
mov byte [esp + 0x5d4], 6
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x11
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.PathIsDirectory__
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0x5d4], 3
call fcn.004041e0
mov esi, 0x10
cmp dword [esp + 0xc8], esi
jb 0x4057e3
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.00416c01
add esp, 4
mov byte [esp + 0x59c], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x406181
push 7
push str.ssp.exe
lea ecx, [esp + 0x80]
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
call fcn.004024f0
mov byte [esp + 0x59c], 7
push 0xd
push 0x452918
lea ecx, [esp + 0xd4]
mov dword [esp + 0xec], ebp
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
call fcn.004024f0
mov byte [esp + 0x59c], 8
push 0xa
push str.Manage.exe
lea ecx, [esp + 0x9c]
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
call fcn.004024f0
mov dword [esp + 0x18], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x58], vtable.CParseConfig.0
mov byte [esp + 0x59c], 0xb
mov ecx, dword [esp + 0x60]
mov esi, 0x10
cmp dword [esp + 0x74], esi
jae 0x4058d8
lea ecx, [esp + 0x60]
lea eax, [esp + 0x28]
push eax
call fcn.00401a10
test al, al
je 0x406045
cmp dword [esp + 0x90], esi
mov ecx, dword [esp + 0x7c]
jae 0x4058fb
lea ecx, [esp + 0x7c]
call fcn.00402fd0
test eax, eax
je 0x40594e
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x9c]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00402280
sub esp, 0x1c
mov byte [esp + 0x5d4], 0xc
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.KillExe___
call fcn.004020b0
mov byte [esp + 0x5d4], 0xb
call fcn.004041e0
lea eax, [esp + 0x484]
push eax
call fcn.004051c0
sub esp, 0x1c
test eax, eax
mov ecx, esp
mov dword [esp + 0x30], esp
jne 0x4059a6
push 0x4529fc
call fcn.004020b0
sub esp, 0x1c
mov byte [esp + 0x5d4], 0xd
mov ecx, esp
mov dword [esp + 0x54], esp
push 0x452a04
call fcn.004020b0
mov byte [esp + 0x5d4], 0xb
call fcn.004041e0
mov ecx, 0x452918
call fcn.00402fd0
jmp 0x4059d8
push 0x452928
call fcn.004020b0
sub esp, 0x1c
mov byte [esp + 0x5d4], 0xe
mov ecx, esp
mov dword [esp + 0x54], esp
push 0x452a04
call fcn.004020b0
mov byte [esp + 0x5d4], 0xb
call fcn.004041e0
cmp dword [esp + 0xac], esi
mov ecx, dword [esp + 0x98]
jae 0x4059ef
lea ecx, [esp + 0x98]
call fcn.00402fd0
test eax, eax
je 0x405a42
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xb8]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00402280
sub esp, 0x1c
mov byte [esp + 0x5d4], 0xf
mov ecx, esp
mov dword [esp + 0x54], esp
push str.KillExe___fail
call fcn.004020b0
mov byte [esp + 0x5d4], 0xb
call fcn.004041e0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x59c], 0x10
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp esi, eax
jbe 0x405a76
call fcn.00432c1e
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x28]
mov edi, ecx
mov dword [esp + 0x48], edi
mov ebp, esi
cmp dword [esp + 0x2c], eax
mov esi, eax
jbe 0x405a8f
call fcn.00432c1e
cmp edi, ebx
je 0x405a9b
lea eax, [esp + 0x28]
cmp edi, eax
je 0x405aa0
call fcn.00432c1e
cmp ebp, esi
je 0x406006
push 0x103
lea ecx, [esp + 0x141]
push ebx
push ecx
mov byte [esp + 0x148], bl
call fcn.00436440
add esp, 0xc
push 0x104
lea edx, [esp + 0x244]
push ebx
push edx
call fcn.00436440
add esp, 0xc
cmp edi, ebx
jne 0x405ae4
call fcn.00432c1e
cmp ebp, dword [edi + 8]
jb 0x405aee
call fcn.00432c1e
push ebp
lea edx, [esp + 0x488]
lea esi, [esp + 0x140]
call fcn.004034c0
test eax, eax
je 0x405fa1
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x405fa1
cmp ebp, dword [edi + 8]
jb 0x405b25
call fcn.00432c1e
push ebp
lea ecx, [esp + 0x140]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x13c]
mov dword [esp + 0x11c], 0xf
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405b57
sub eax, edx
push eax
lea edx, [esp + 0x140]
push edx
lea ecx, [esp + 0x10c]
call fcn.004024f0
lea eax, [esp + 0x344]
push eax
lea ecx, [esp + 0x140]
push ecx
mov byte [esp + 0x5a4], 0x11
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x405cb4
push ebx
call fcn.00433fb9
mov dword [esp + 0x58], edx
add esp, 4
lea edx, [esp + 0x50]
push edx
mov ecx, str.._Y_m_d_H_M_S
lea edi, [esp + 0x20]
mov dword [esp + 0x54], eax
call fcn.00402e40
mov byte [esp + 0x59c], 0x12
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x124]
call fcn.004020b0
mov byte [esp + 0x59c], 0x14
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, 0x104
lea eax, [esp + 0x240]
lea ecx, [ecx]
mov cl, byte [eax - 0x104]
cmp cl, bl
je 0x405c26
mov byte [eax], cl
add eax, 1
sub edx, 1
jne 0x405c10
jmp 0x405c2a
cmp edx, ebx
jne 0x405c2d
sub eax, 1
cmp dword [esp + 0x138], 0x10
mov byte [eax], bl
mov eax, dword [esp + 0x124]
jae 0x405c47
lea eax, [esp + 0x124]
push eax
lea edi, [esp + 0x244]
call fcn.00402f30
mov ecx, edi
push ecx
lea edx, [esp + 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x405f1f
lea eax, [esp + 0x13c]
lea esi, [esp + 0x38]
call fcn.00410c70
mov eax, dword [esp + 0x48]
cmp ebp, dword [eax + 8]
jb 0x405c8b
call fcn.00432c1e
mov ecx, dword [ebp + 0x104]
push ecx
lea ecx, [esp + 0x140]
call fcn.00403670
test eax, eax
je 0x405d5a
lea ecx, [esp + 0x120]
call fcn.00402120
jmp 0x405d17
sub esp, 0x1c
lea edx, [esp + 0x158]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.004020b0
sub esp, 0x1c
mov byte [esp + 0x5d4], 0x17
mov ecx, esp
mov dword [esp + 0x58], esp
push 0x452a84
call fcn.004020b0
mov byte [esp + 0x5d4], 0x11
call fcn.004041e0
cmp ebp, dword [edi + 8]
jb 0x405cfc
call fcn.00432c1e
mov eax, dword [ebp + 0x104]
push eax
lea ecx, [esp + 0x140]
call fcn.00403670
test eax, eax
je 0x405f57
mov byte [esp + 0x59c], 0x10
cmp dword [esp + 0x11c], 0x10
jb 0x405d39
mov ecx, dword [esp + 0x108]
push ecx
call fcn.00416c01
add esp, 4
mov edx, dword [esp + 0x48]
cmp ebp, dword [edx + 8]
jb 0x405d47
call fcn.00432c1e
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x48]
add ebp, 0x214
jmp 0x405a82
lea eax, [esp + 0x38]
push eax
call fcn.00403840
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x452a44
call fcn.004020b0
sub esp, 0x1c
mov byte [esp + 0x5d4], 0x15
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x452a54
call fcn.004020b0
mov byte [esp + 0x5d4], 0x14
call fcn.004041e0
lea ecx, [esp + 0x120]
call fcn.00402120
lea ecx, [esp + 0x104]
call fcn.00402120
lea edx, [esp + 0x484]
mov dword [esp + 0x18], ebx
push edx
lea edi, [esp + 0x7c]
call fcn.00404f50
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x405ddd
push eax
call fcn.00416c01
add esp, 4
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x405dee
push eax
call fcn.00416c01
add esp, 4
mov edi, 0x10
cmp dword [esp + 0xac], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
jb 0x405e18
mov eax, dword [esp + 0x98]
push eax
call fcn.00416c01
add esp, 4
cmp dword [esp + 0xe4], edi
mov esi, 0xf
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
jb 0x405e4b
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0x90], edi
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
jb 0x405e76
mov edx, dword [esp + 0x7c]
push edx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0xc8], edi
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
jb 0x405ea1
mov eax, dword [esp + 0xb4]
push eax
call fcn.00416c01
add esp, 4
mov byte [esp + 0x59c], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ede
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x74], edi
jb 0x405ef1
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0x100], edi
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
jb 0x405f16
mov edx, dword [esp + 0xec]
push edx
call fcn.00416c01
add esp, 4
mov eax, dword [esp + 0x18]
jmp 0x4061c7
lea ecx, [esp + 0x38]
push ecx
call fcn.00403840
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x452a64
call fcn.004020b0
sub esp, 0x1c
mov byte [esp + 0x5d4], 0x16
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.return_FALSE
jmp 0x405d8d
lea edx, [esp + 0x38]
push edx
call fcn.00403840
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x452a44
call fcn.004020b0
sub esp, 0x1c
mov byte [esp + 0x5d4], 0x18
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x452a54
call fcn.004020b0
mov byte [esp + 0x5d4], 0x11
call fcn.004041e0
jmp 0x405dab
lea eax, [esp + 0x38]
push eax
call fcn.00403840
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 5
mov esi, 0xf
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str.fail_
mov byte [ecx + 4], bl
call fcn.004024f0
sub esp, 0x1c
mov byte [esp + 0x5d4], 0x19
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x24
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str.BuildPath
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0x5d4], 0x10
call fcn.004041e0
jmp 0x405db7
lea ecx, [esp + 0x484]
push ecx
lea edi, [esp + 0x7c]
call fcn.00404f50
test eax, eax
je 0x40602a
lea edx, [esp + 0x38]
push edx
call fcn.00403db0
jmp 0x405dcc
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x1c], ebx
call fcn.00403840
lea ecx, [esp + 0x484]
push ecx
jmp 0x405dc3
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x12
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x452ae4
mov byte [ecx + 4], bl
call fcn.004024f0
sub esp, 0x1c
mov byte [esp + 0x5d4], 0x1a
mov ecx, esp
mov dword [esp + 0x4c], esp
push 8
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x452af8
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0x5d4], 0xb
call fcn.004041e0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4060a7
push eax
call fcn.00416c01
add esp, 4
cmp dword [esp + 0xac], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
jb 0x4060cc
mov eax, dword [esp + 0x98]
push eax
call fcn.00416c01
add esp, 4
cmp dword [esp + 0xe4], esi
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
jb 0x4060fa
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0x90], esi
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
jb 0x406125
mov edx, dword [esp + 0x7c]
push edx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0xc8], esi
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
jb 0x406150
mov eax, dword [esp + 0xb4]
push eax
call fcn.00416c01
add esp, 4
mov byte [esp + 0x59c], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40618d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x74], esi
jb 0x4061a0
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0x100], esi
mov byte [esp + 0x60], bl
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebp
jb 0x4061c5
mov edx, dword [esp + 0xec]
push edx
call fcn.00416c01
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x594]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x578]
xor ecx, esp
call fcn.004322f2
add esp, 0x58c
ret 4