Function at 0x100054cd
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, 0x100175a8
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x100054ec
mov eax, esi
push eax
push dword [ebp + 8]
push str.move_file__s_____s
call fcn.100049c1
add esp, 0xc
mov byte [ebp + 0xf], bl
call fcn.10005070
test al, al
je 0x10005552
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x10005512
mov eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp + 0xf], al
jne 0x10005934
mov edi, dword [edi + 4]
cmp edi, ebx
je 0x10005535
mov esi, edi
push ebx
call fcn.1000702c
push eax
push esi
push dword [ebp + 8]
push str.move_file__s_____s_failed:__s
call fcn.10004a03
add esp, 0x14
jmp 0x10005931
mov al, byte [edi]
sub esp, 0x10
mov esi, esp
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.1000457c
push dword [0x100175ac]
mov ecx, esi
push ebx
push edi
call fcn.100043f9
call fcn.10004bd5
add esp, 0x10
cmp al, bl
je 0x10005931
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0x40], al
call fcn.10005bdc
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x60]
mov byte [ebp - 0x60], al
call fcn.1000457c
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x50], al
call fcn.1000457c
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 0x80], al
call fcn.10005bdc
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x70]
mov byte [ebp - 0x70], al
call fcn.10005bdc
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x100055df
mov eax, 0x100175a8
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.1000526b
add esp, 0xc
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], ebx
push ebx
push ebx
push 0xa
call fcn.1000464c
push dword [ebp + 8]
call fcn.1000c430
push eax
lea eax, [ebp - 0x24]
push dword [ebp + 8]
push eax
call fcn.10005e11
mov esi, dword [ebp - 0x1c]
push esi
call fcn.1000c4ab
add esp, 0x14
lea ecx, [ebp - 0x40]
push eax
push esi
call fcn.10005ac5
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
jne 0x10005636
mov eax, 0x100175a8
push dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10005e11
mov esi, dword [ebp - 0x1c]
push esi
call fcn.1000c4ab
add esp, 0x10
lea ecx, [ebp - 0x80]
push eax
push esi
call fcn.10005ac5
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
jne 0x10005665
mov eax, 0x100175a8
push dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10005e11
mov esi, dword [ebp - 0x1c]
push esi
call fcn.1000c4ab
add esp, 0x10
lea ecx, [ebp - 0x70]
push eax
push esi
call fcn.10005ac5
push str.ieframe.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x10005704
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x100056a6
mov edi, 0x100175a8
push ebx
call fcn.1000702c
push eax
push edi
push dword [ebp + 8]
push str.move_file__s_____s_LoadLibrary_ieframe.dll__failed:__s
call fcn.10004a03
add esp, 0x14
cmp dword [ebp - 0x1c], ebx
je 0x100056cc
push dword [ebp - 0x1c]
call fcn.10007f2f
pop ecx
push 1
lea ecx, [ebp - 0x70]
pop esi
mov dword [ebp - 0x1c], ebx
push esi
call fcn.10005bdc
push esi
lea ecx, [ebp - 0x80]
call fcn.10005bdc
push esi
lea ecx, [ebp - 0x50]
call fcn.1000457c
push esi
lea ecx, [ebp - 0x60]
call fcn.1000457c
push esi
lea ecx, [ebp - 0x40]
call fcn.10005bdc
jmp 0x10005925
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IEShowSaveFileDialog
push eax
call esi
push str.IECancelSaveFile
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x14], ebx
jne 0x10005742
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x10005730
mov edi, 0x100175a8
push ebx
call fcn.1000702c
push eax
push edi
push dword [ebp + 8]
push str.move_file__s_____s_GetProcAddress_IEShowSaveFileDialog__failed:__s
jmp 0x1000576f
push str.IESaveFile
push dword [ebp - 0xc]
call esi
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x1000577c
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x1000575f
mov edi, 0x100175a8
push ebx
call fcn.1000702c
push eax
push edi
push dword [ebp + 8]
push str.move_file__s_____s_GetProcAddress_IESaveFile__failed:__s
call fcn.10004a03
add esp, 0x14
jmp 0x100058db
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100057a4
mov esi, dword [sym.imp.USER32.dll_GetParent]
push dword [ebp - 4]
call esi
test eax, eax
je 0x100057a4
push dword [ebp - 4]
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1000578f
mov ecx, dword [ebp - 0x7c]
mov esi, 0x100175e0
cmp ecx, ebx
jne 0x100057b2
mov ecx, esi
mov eax, dword [ebp - 0x6c]
cmp eax, ebx
jne 0x100057bb
mov eax, esi
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 8]
push edx
push 0x800002
push 1
push 0x1001bf90
push str.Executable_Files__.exe_
push ecx
push eax
push dword [ebp - 4]
call dword [ebp - 0x14]
cmp eax, ebx
je 0x100057f8
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x100057ec
mov edi, 0x100175a8
push eax
push edi
push dword [ebp + 8]
push str.move_file__s_____s_IEShowSaveFileDialog_returns:_0x_08x
jmp 0x10005821
cmp dword [ebp - 0x3c], ebx
je 0x10005800
mov esi, dword [ebp - 0x3c]
push esi
push dword [ebp - 0x10]
call dword [ebp - 0x18]
cmp eax, ebx
je 0x1000582e
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x10005817
mov edi, 0x100175a8
push eax
push edi
push dword [ebp + 8]
push str.move_file__s_____s_IESaveFile_returns:__08x
call fcn.10004a03
add esp, 0x10
jmp 0x100058db
push dword [0x100175e4]
lea ecx, [ebp - 0x40]
push ebx
call fcn.100059c0
mov esi, dword [ebp - 8]
push esi
call fcn.1000c4ab
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.10005ac5
push ebx
push ebx
push 0x400
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x28], ebx
call fcn.100045b8
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x1000586f
mov eax, 0x100175e0
push dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10005dcd
add esp, 0xc
mov ecx, edi
push dword [0x100175ac]
push ebx
call fcn.100041e9
mov esi, dword [ebp - 0x28]
push esi
call fcn.1000c430
pop ecx
push eax
push esi
mov ecx, edi
call fcn.100043a2
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x100058ac
mov edi, 0x100175a8
push edi
push dword [ebp + 8]
push str.moved_file__s_____s
call fcn.100049c1
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x28], ebx
mov byte [ebp + 0xf], 1
je 0x100058d8
push dword [ebp - 0x28]
call fcn.10007f2f
pop ecx
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x1c], ebx
je 0x100058e9
push dword [ebp - 0x1c]
call fcn.10007f2f
pop ecx
push 1
lea ecx, [ebp - 0x70]
pop esi
mov dword [ebp - 0x1c], ebx
push esi
call fcn.10005bdc
push esi
lea ecx, [ebp - 0x80]
call fcn.10005bdc
push esi
lea ecx, [ebp - 0x50]
call fcn.1000457c
push esi
lea ecx, [ebp - 0x60]
call fcn.1000457c
push esi
lea ecx, [ebp - 0x40]
call fcn.10005bdc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret