Function at 0x408b50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d76d0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x669404]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebx + 0x10]
call fcn.00549c70
mov dword [ebp - 0x10], esp
mov esi, esp
push 0xdead0009
push 0xfebeef
lea ecx, [ebp - 0x54]
push ecx
call fcn.00404610
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x408bbb
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esi], edx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x54]
call fcn.00406010
mov eax, 8
call fcn.00549c70
mov dword [ebp - 0x10], esp
mov eax, esp
mov dword [ebp - 0x5c], eax
cmp eax, ebx
je 0x408bf8
mov dword [eax], 0xabab00fe
mov dword [ebp - 4], 0xffffffff
jmp 0x408c10
mov esi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x408c20
mov dword [eax], 0xcdcd00fe
mov dword [ebp - 0x58], 6
test byte [0x679728], 1
jne 0x408c57
or dword [0x679728], 1
mov dword [ebp - 4], 3
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
push ecx
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x408d94
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 5
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 6
lea edi, [ebp - 0x38]
call fcn.004193b0
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x408cb4
push 0xd
push str.EnterFunction
mov ecx, eax
call fcn.004044f0
jmp 0x408cc2
push str.EnterFunction
push ecx
call fcn.004046b0
add esp, 8
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov edi, eax
mov byte [ebp - 4], 7
test byte [0x679728], 1
jne 0x408d04
or dword [0x679728], 1
mov byte [ebp - 4], 8
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], 7
mov ecx, 0x6796dc
mov dword [ebp - 0x58], ecx
mov eax, dword [0x6796dc]
mov edx, dword [eax + 4]
call edx
mov byte [ebp - 4], 9
mov ecx, dword [0x679724]
cmp ecx, ebx
je 0x408d49
cmp dword [edi + 0x14], 8
jb 0x408d2e
mov eax, dword [edi]
jmp 0x408d30
mov eax, edi
mov edx, dword [ecx]
push 0xfe
push str.FileHandler::RemoveFile
push str.FileHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 7
mov edx, dword [0x6796dc]
mov ecx, 0x6796dc
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x40], 8
jb 0x408d74
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], ebx
xor edx, edx
mov word [ebp - 0x54], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x38]
push eax
call fcn.00419280
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x408da1
mov dword [eax], 0xcdcd00ff
mov dword [ebp - 0x58], 6
test byte [0x679728], 1
jne 0x408dd8
or dword [0x679728], 1
mov dword [ebp - 4], 0xa
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
push ecx
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x408f16
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0xd
push esi
push ecx
push str.EnterFunction_Path_
push ecx
lea edi, [ebp - 0x38]
call fcn.004193b0
add esp, 4
mov ecx, eax
call fcn.004162f0
add esp, 8
push eax
call fcn.004049a0
add esp, 8
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov eax, edi
push eax
call fcn.00419470
mov ecx, eax
call fcn.00403c90
mov edi, eax
mov byte [ebp - 4], 0xe
test byte [0x679728], 1
jne 0x408e85
or dword [0x679728], 1
mov byte [ebp - 4], 0xf
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], 0xe
mov ecx, 0x6796dc
mov dword [ebp - 0x58], ecx
mov edx, dword [0x6796dc]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov ecx, dword [0x679724]
cmp ecx, ebx
je 0x408ecb
cmp dword [edi + 0x14], 8
jb 0x408eb0
mov eax, dword [edi]
jmp 0x408eb2
mov eax, edi
mov edx, dword [ecx]
push 0xff
push str.FileHandler::RemoveFile
push str.FileHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xe
mov edx, dword [0x6796dc]
mov ecx, 0x6796dc
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x40], 8
jb 0x408ef6
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], ebx
xor edx, edx
mov word [ebp - 0x54], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x38]
push eax
call fcn.00419280
push esi
lea ecx, [ebp - 0x5d]
call fcn.00409f50
add esp, 4
test al, al
jne 0x40905c
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x408f37
mov dword [eax], 0xcdcd0104
mov dword [ebp - 0x58], 6
test byte [0x679728], 1
jne 0x408f6e
or dword [0x679728], 1
mov dword [ebp - 4], 0x11
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
push ecx
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x409055
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0x12
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x13
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x14
lea edi, [ebp - 0x38]
call fcn.004193b0
mov esi, eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
jne 0x408fcd
push 0x11
push str.ExitFunction_Ret:
mov ecx, esi
call fcn.004044f0
jmp 0x408fdb
push str.ExitFunction_Ret:
push eax
call fcn.004046b0
add esp, 8
mov edx, str.False
call fcn.00418da0
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x15
push 0x104
push str.FileHandler::RemoveFile
push str.FileHandler.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x40], 8
jb 0x409031
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
xor ecx, ecx
mov word [ebp - 0x54], cx
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x38]
push edx
call fcn.00419280
xor al, al
jmp 0x40964b
cmp byte [ebp - 0x5d], bl
jne 0x409259
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x409072
mov dword [eax], 0xcdcd0107
mov dword [ebp - 0x58], 2
lea eax, [ebp - 0x58]
push eax
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x409167
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0x16
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x17
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x18
lea edi, [ebp - 0x38]
call fcn.004193b0
mov edx, str.IsFileExist_failed
mov esi, eax
call fcn.00418da0
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x4090e8
push 0xffffffffffffffff
push ebx
mov ecx, dword [ebp - 0x64]
push ecx
mov ecx, eax
call fcn.00406070
jmp 0x4090f5
mov edx, dword [ebp - 0x64]
push edx
push ecx
call fcn.004049a0
add esp, 8
push 0x1ff
push ebx
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x19
push 0x107
push str.FileHandler::RemoveFile
push str.FileHandler.cpp
push 2
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x18
cmp dword [ebp - 0x40], 8
jb 0x409141
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
xor edx, edx
mov word [ebp - 0x54], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x38]
push eax
call fcn.00419280
xor ebx, ebx
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x409174
mov dword [eax], 0xcdcd0108
mov dword [ebp - 0x58], 6
lea ecx, [ebp - 0x58]
push ecx
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x409055
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0x1a
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x1b
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x1c
lea edi, [ebp - 0x38]
call fcn.004193b0
mov edx, str.ExitFunction_Ret:
mov esi, eax
call fcn.00418da0
mov edx, str.False
mov esi, eax
call fcn.00418da0
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x1d
push pe_nt_image_headers32
push str.FileHandler::RemoveFile
push str.FileHandler.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x1c
cmp dword [ebp - 0x40], 8
jb 0x409031
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
xor ecx, ecx
mov word [ebp - 0x54], cx
mov dword [ebp - 4], 0xffffffff
mov edx, edi
push edx
call fcn.00419280
xor al, al
jmp 0x40964b
cmp dword [esi + 0x14], 8
jb 0x409263
mov eax, dword [esi]
jmp 0x409265
mov eax, esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
test eax, eax
jne 0x4094aa
push esi
call fcn.0040a4a0
add esp, 4
test al, al
jne 0x40933e
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x409294
mov dword [eax], 0xcdcd010e
mov dword [ebp - 0x58], 6
lea eax, [ebp - 0x58]
push eax
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x409337
lea ecx, [ebp - 0x38]
push ecx
call fcn.00419220
mov dword [ebp - 4], 0x1e
lea edi, [ebp - 0x38]
call fcn.004193b0
mov edx, str.ExitFunction_Ret:
mov esi, eax
call fcn.00418da0
mov edx, str.False
mov esi, eax
call fcn.00418da0
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x1f
push 0x10e
push str.FileHandler::RemoveFile
push str.FileHandler.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x54]
call fcn.004068c0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
push eax
call fcn.00419280
xor al, al
jmp 0x40964b
cmp dword [esi + 0x14], 8
jb 0x409348
mov eax, dword [esi]
jmp 0x40934a
mov eax, esi
push eax
call edi
test eax, eax
jne 0x4094aa
mov esi, dword [ebp - 0x5c]
cmp esi, ebx
je 0x409362
mov dword [esi], 0xcdcd0112
mov dword [ebp - 0x58], 2
lea ecx, [ebp - 0x58]
push ecx
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x409407
lea edx, [ebp - 0x38]
push edx
call fcn.00419220
mov dword [ebp - 4], 0x20
mov edi, edx
call fcn.004193b0
mov edx, str.DeleteFileW_failed
mov esi, eax
call fcn.00418da0
mov ecx, dword [ebp - 0x64]
mov esi, eax
call fcn.00418d70
push 0x1ff
push ebx
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x21
push 0x112
push str.FileHandler::RemoveFile
push str.FileHandler.cpp
push 2
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x54]
call fcn.004068c0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
push ecx
call fcn.00419280
xor ebx, ebx
mov esi, dword [ebp - 0x5c]
cmp esi, ebx
je 0x409411
mov dword [esi], 0xcdcd0113
mov dword [ebp - 0x58], 6
lea edx, [ebp - 0x58]
push edx
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x409055
lea eax, [ebp - 0x38]
push eax
call fcn.00419220
mov dword [ebp - 4], 0x22
lea edi, [ebp - 0x38]
call fcn.004193b0
mov edx, str.ExitFunction_Ret:
mov esi, eax
call fcn.00418da0
mov edx, str.False
mov esi, eax
call fcn.00418da0
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x23
push 0x113
push str.FileHandler::RemoveFile
push str.FileHandler.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x54]
call fcn.004068c0
jmp 0x409045
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x4094b7
mov dword [eax], 0xcdcd0117
mov dword [ebp - 0x58], 6
lea eax, [ebp - 0x58]
push eax
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x409581
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0x24
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x25
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x26
push esi
push ecx
push str.ExitFunction_Path_
push ecx
lea edi, [ebp - 0x38]
call fcn.004193b0
add esp, 4
mov ecx, eax
call fcn.004162f0
add esp, 8
push eax
call fcn.004049a0
add esp, 8
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov edx, edi
push edx
call fcn.00419470
mov ecx, eax
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x27
push 0x117
push str.FileHandler::RemoveFile
push str.FileHandler.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x54]
call fcn.004068c0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
push eax
call fcn.00419280
xor ebx, ebx
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x40958e
mov dword [eax], 0xcdcd0118
mov dword [ebp - 0x58], 6
lea ecx, [ebp - 0x58]
push ecx
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x409649
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0x28
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x29
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x2a
lea edi, [ebp - 0x38]
call fcn.004193b0
mov edx, str.ExitFunction_Ret:
mov esi, eax
call fcn.00418da0
mov edx, str.True
mov esi, eax
call fcn.00418da0
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x2b
push 0x118
push str.FileHandler::RemoveFile
push str.FileHandler.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0x54]
call fcn.004068c0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
push eax
call fcn.00419280
mov al, 1
lea esp, [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00546bdc
mov esp, ebp
pop ebp
ret