Function at 0x10031710
Capabilities:
Delete file
Get common file path
Get graphical window text
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x190c
call fcn.1003c420
mov eax, dword [0x100416e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x18f0], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1900], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [edx + 4]
mov dword [ebp - 0x1904], eax
mov eax, dword [ebp + 0x20]
push 0x7f02
mov dword [ebp - 0x18fc], eax
mov eax, dword [ebp + 0x24]
push 0
mov dword [ebp - 0x18f4], edx
mov dword [ebp - 0x18ec], ecx
mov dword [ebp - 0x18e4], esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18e8], 0
mov dword [ebp - 0x18f8], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
test dword [edi + 0x5c], 0x20000
jne 0x10031804
push 0
push 0
push 0x4a
lea eax, [edi + 0x104]
push 0xffffffffffffffff
push eax
call dword [sym.imp.msjet40.dll_Ordinal_176]
lea eax, [edi + 0x104]
push eax
call dword [sym.imp.msjet40.dll_Ordinal_154]
mov dword [ebp - 0x18e8], eax
test eax, eax
js 0x10031eb1
or dword [edi + 0x5c], 0x20000
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x18f8], 2
test eax, eax
je 0x10031804
push eax
push 0
push 0
push 0xffffffffffffffff
lea eax, [edi + 0x104]
push eax
call dword [sym.imp.msjet40.dll_Ordinal_176]
mov dword [ebp - 0x18e8], eax
cmp dword [edi + 0x24], 0
jne 0x10031811
mov ecx, 0x10001f58
jmp 0x10031860
mov ecx, dword [ebp - 0x1900]
test ecx, ecx
jne 0x10031856
test byte [ebp + 0x2c], 1
jne 0x10031ebf
push 0x12c
lea edx, [ebp - 0x268]
mov ecx, 0xa02b
call fcn.100332d0
push 0x10
push 0
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x18ec]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x10031ebf
mov eax, dword [ebp - 0x1904]
test eax, eax
jne 0x10031865
mov eax, 0x100021a8
cmp dword [edi + 0x54], 0xffffffff
lea edx, [edi + 0x54]
jne 0x10031892
push eax
push ecx
push edx
push dword [edi + 0x104]
call dword [sym.imp.msjet40.dll_Ordinal_103]
mov dword [ebp - 0x18e8], eax
test eax, eax
js 0x10031eb1
or dword [ebp - 0x18f8], 4
push 0x12c
lea eax, [ebp - 0xfd0]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.msvcrt.dll__wsplitpath_s]
add esp, 0x24
cmp word [ebp - 0xfd0], 0
jne 0x100318f1
push 0x10003c60
push esi
push 0x10003c78
push 0x12b
lea eax, [ebp - 0xfd0]
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
lea eax, [ebp - 0xfd0]
add esp, 0x18
mov dword [ebp - 0x18e4], eax
jmp 0x100318f3
mov eax, esi
mov esi, dword [ebp + 8]
cmp esi, 3
jne 0x100318ff
mov ebx, eax
jmp 0x10031904
cmp esi, 2
jne 0x1003197e
push 0x12c
lea eax, [ebp - 0x1688]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.msvcrt.dll__wsplitpath_s]
add esp, 0x24
lea eax, [ebp - 0x920]
cmp word [ebp - 0x1688], 0
jne 0x10031957
push 0x10003c60
push ebx
push 0x10003c78
push 0x12b
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
add esp, 0x18
jmp 0x1003197e
lea ecx, [ebp - 0x920]
mov edx, 0x12c
sub ebx, ecx
movzx ecx, word [ebx + eax]
test cx, cx
je 0x10031979
mov word [eax], cx
dec edx
add eax, 2
cmp edx, 1
ja 0x10031964
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x18e4]
test eax, eax
je 0x10031999
push ebx
push dword [ebp + 0x28]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
push 0x100021ac
push ebx
call dword [sym.imp.msvcrt.dll_wcspbrk]
add esp, 8
test eax, eax
jne 0x10031a2e
cmp dword [ebp - 0x18f0], eax
je 0x10031a2e
mov ecx, ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100319c0
sub ecx, edx
mov edx, dword [ebp - 0x18f0]
sar ecx, 1
lea eax, [edx + 2]
mov dword [ebp - 0xc], eax
jmp 0x100319e0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100319e0
sub edx, dword [ebp - 0xc]
sar edx, 1
lea eax, [edx + 1]
add eax, ecx
cmp eax, 0x12c
jae 0x10031a2e
push ebx
push dword [ebp - 0x18f0]
lea eax, [ebp - 0x18e0]
push 0x100021b4
push 0x12c
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
lea eax, [ebp - 0x18e0]
add esp, 0x18
mov dword [ebp - 0x18e4], eax
cmp esi, 2
je 0x10031a3c
cmp esi, 3
jne 0x10031afc
lea eax, [ebp - 0x920]
push 0x100021ac
push eax
call dword [sym.imp.msvcrt.dll_wcspbrk]
add esp, 8
test eax, eax
jne 0x10031acd
mov ebx, dword [ebp - 0x18fc]
test ebx, ebx
je 0x10031acd
lea edx, [ebp - 0x920]
lea ecx, [edx + 2]
jmp 0x10031a70
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10031a70
sub edx, ecx
mov ecx, ebx
sar edx, 1
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031a84
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + 1]
add eax, edx
cmp eax, 0x104
jae 0x10031acd
lea eax, [ebp - 0x920]
push eax
push dword [ebp - 0x18fc]
lea eax, [ebp - 0x470]
push 0x100021b4
push 0x104
push 0x104
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
add esp, 0x18
jmp 0x10031afc
lea eax, [ebp - 0x470]
mov ecx, 0x104
lea ebx, [ebp - 0x920]
mov edx, eax
sub ebx, edx
movzx edx, word [ebx + eax]
test dx, dx
je 0x10031af7
mov word [eax], dx
dec ecx
add eax, 2
cmp ecx, 1
ja 0x10031ae2
xor ecx, ecx
mov word [eax], cx
cmp esi, 2
je 0x10031b06
cmp esi, 1
jne 0x10031b30
mov eax, dword [ebp - 0x18f4]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x10031b30
push eax
push 0x10003c84
lea eax, [ebp - 0xb78]
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
jmp 0x10031b4f
cmp esi, 3
jne 0x10031b46
mov ebx, dword [ebp + 0x2c]
or ebx, 4
xor eax, eax
mov word [ebp - 0xb78], ax
jmp 0x10031b61
xor eax, eax
mov word [ebp - 0xb78], ax
cmp esi, 1
je 0x10031d06
jle 0x10031dc6
mov ebx, dword [ebp + 0x2c]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x18f0], 0
test eax, eax
je 0x10031b99
push eax
push 0x10003cc0
lea eax, [ebp - 0x1228]
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
lea eax, [ebp - 0x1228]
add esp, 0x10
mov dword [ebp - 0x18f0], eax
lea ecx, [ebp - 0x470]
call fcn.10032810
test eax, eax
je 0x10031cca
lea eax, [ebp - 0xd78]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push 0
push 0x10003c70
lea eax, [ebp - 0xd78]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x18f4]
lea eax, [ebp - 0xb78]
push esi
push ecx
mov ecx, dword [ebp - 0x18ec]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x18f0]
push dword [ebp - 0x18e4]
push dword [edi + 0x54]
push ebx
call fcn.10031f40
mov dword [ebp - 0x18e8], eax
test eax, eax
js 0x10031c42
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 0x100
lea eax, [ebp - 0x670]
push eax
push 0x100
lea eax, [ebp - 0xd78]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.msvcrt.dll__wsplitpath_s]
add esp, 0x24
lea eax, [ebp - 0x670]
push 0x10003c68
push eax
lea eax, [ebp - 0xd78]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10003cd0
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x1c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x18e8]
jmp 0x10031dcf
mov edx, dword [ebp - 0x18f4]
lea eax, [ebp - 0xb78]
push esi
push ecx
mov ecx, dword [ebp - 0x18ec]
push eax
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x18f0]
push dword [ebp - 0x18e4]
push dword [edi + 0x54]
push ebx
call fcn.10031f40
mov dword [ebp - 0x18e8], eax
jmp 0x10031dcf
mov ebx, dword [ebp - 0x18e4]
push 0
push 0
push 3
push 0
push 3
push Ordinal_3
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10031d35
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x18f4]
movzx ecx, word [eax + 0x16]
mov eax, ecx
and eax, 8
shl eax, 4
test cl, 0x10
je 0x10031d51
or eax, 0x200
test cl, 4
je 0x10031d59
or eax, 0x20
test cl, 0x20
je 0x10031d61
or eax, 1
push eax
test al, al
jns 0x10031d8b
push 0x10003c9c
push 0x10003ca4
push 0x10003cb0
lea eax, [ebp - 0xb78]
push eax
push ebx
call dword [sym.imp.msjet40.dll_Ordinal_185]
mov dword [ebp - 0x18e8], eax
jmp 0x10031dcc
lea eax, [ebp - 0x1908]
push eax
lea eax, [ebp - 0xb78]
push eax
push ebx
push dword [edi + 0x54]
call dword [sym.imp.msjet40.dll_Ordinal_112]
mov dword [ebp - 0x18e8], eax
test eax, eax
js 0x10031dcc
push 0
push dword [ebp - 0x1908]
push dword [edi + 0x54]
call dword [sym.imp.msjet40.dll_Ordinal_107]
mov dword [ebp - 0x18e8], eax
jmp 0x10031dcc
mov eax, dword [ebp - 0x18e8]
mov ebx, dword [ebp + 0x2c]
test bl, 1
jne 0x10031ebf
test eax, eax
js 0x10031eb1
sub esi, 1
je 0x10031e3f
sub esi, 1
je 0x10031dfa
sub esi, 1
jne 0x10031e7b
mov ecx, 0xade1
jmp 0x10031e44
push 0x12c
lea edx, [ebp - 0x6c8]
mov ecx, 0xade2
call fcn.100332d0
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x18e4]
lea eax, [ebp - 0x6c8]
push eax
push 0x22f
lea eax, [ebp - 0x1430]
push 0x230
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
add esp, 0x18
jmp 0x10031e7b
mov ecx, 0xaddf
push 0x12c
lea edx, [ebp - 0x6c8]
call fcn.100332d0
push dword [ebp - 0x18e4]
lea eax, [ebp - 0x6c8]
push eax
push 0x22f
lea eax, [ebp - 0x1430]
push 0x230
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
add esp, 0x14
mov ebx, dword [ebp - 0x18ec]
test ebx, ebx
je 0x10031ebf
push 0x103
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x40
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1430]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x10031ebf
mov ecx, dword [ebp - 0x18ec]
mov edx, edi
push eax
call fcn.1000c2e0
mov ebx, dword [ebp - 0x18f8]
test bl, 4
je 0x10031edc
push 0
push dword [edi + 0x54]
call dword [sym.imp.msjet40.dll_Ordinal_130]
mov dword [edi + 0x54], 0xffffffff
test bl, 2
je 0x10031efe
push dword [edi + 0x104]
call dword [sym.imp.msjet40.dll_Ordinal_178]
and dword [edi + 0x5c], 0xfffdffff
mov dword [edi + 0x104], 0
cmp dword [ebp - 0x18e8], 0
jl 0x10031f1c
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bd00
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003bd00
mov esp, ebp
pop ebp
ret 0x28