Function at 0x489a40
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d510
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 1
cmp dword [ebp + 0x18], 0
je 0x48a004
cmp dword [ebp + 0x30], 0
je 0x48a004
call fcn.0048b970
mov edi, eax
test edi, edi
je 0x48a004
push 0x594654
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x28]
call fcn.0048b260
add esp, 4
add esi, 0x64
mov ecx, esi
mov dword [ebp - 0x30], esi
push eax
call fcn.00446ea0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x489afa
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x489af0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x489af0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0052365a
add esp, 8
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x489b04
mov eax, dword [esi]
sub esp, 8
lea ecx, [ebp - 0x1a4]
push 0x20
push eax
call fcn.0046b7b0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1a4]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x198], 0
jne 0x489dce
push 2
push 0
push 0
lea ecx, [ebp - 0x1a4]
call fcn.0048ad00
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1a4]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x16c]
test ecx, ecx
je 0x489b63
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 3
call fcn.00456f00
mov byte [ebp - 0x38], al
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x198], 6
jne 0x489bb2
mov ecx, dword [ebp + ecx - 0x16c]
lea edx, [ebp - 0x28]
push 1
push 1
push 0
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0x28]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1a4]
jmp 0x489bcb
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
movups xmmword [ebp - 0x20], xmm0
mov byte [ebp - 4], 6
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x16c]
test ecx, ecx
je 0x489bde
mov eax, dword [ecx]
call dword [eax + 8]
push 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1a4]
mov esi, dword [ebp - 0x28]
add esi, dword [ebp - 0x20]
push 0
push 0
call fcn.0048ad00
test esi, esi
jle 0x489dce
mov dword [ebp - 0xec], 0x59467c
mov dword [ebp - 0xdc], 0x594674
mov dword [ebp - 0x84], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
sub esp, 8
mov byte [ebp - 4], 8
lea eax, [ebp - 0xd4]
mov dword [ebp - 0x2c], 1
lea ecx, [ebp - 0xec]
push eax
call fcn.004562c0
lea eax, [ebp - 0xdc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xe0], eax
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xec], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xf0], eax
mov dword [ebp - 4], 0xc
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xec], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xf0], eax
lea ecx, [ebp - 0xd4]
call fcn.00438a40
mov dword [ebp - 0xd4], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
push esi
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xd
call fcn.00476870
mov edx, 0x593810
lea ecx, [ebp - 0xdc]
call fcn.0046d6c0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call fcn.00489540
test edx, edx
jl 0x489d35
jg 0x489d28
test eax, eax
je 0x489d35
push edx
push eax
lea ecx, [ebp - 0xdc]
call fcn.0048aa80
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xec]
call fcn.0048b400
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x2717
push edi
call fcn.0048baf0
mov byte [ebp - 4], 0xd
add esp, 0xc
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x489dad
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x489da3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x489da3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0052365a
add esp, 8
lea ecx, [ebp - 0xec]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 2
call fcn.0048a0b0
lea ecx, [ebp - 0x194]
call fcn.00438010
test eax, eax
jne 0x489e08
mov eax, dword [ebp - 0x1a4]
lea ecx, [ebp - 0x1a4]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0043c970
push 1
push 0x29
push edi
call fcn.0048baf0
push 1
push 0x4a
push edi
call fcn.0048baf0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0x2712
push edi
call fcn.0048baf0
push 0
push 0x4e2c
push edi
call fcn.0048baf0
push 0x4892d0
push 0x4e2b
push edi
call fcn.0048baf0
mov esi, dword [ebp - 0x34]
push esi
push 0x2711
push edi
call fcn.0048baf0
add esp, 0x48
push 0
push 0x2b
push edi
call fcn.0048baf0
push 0x4894f0
push 0x4efb
push edi
call fcn.0048baf0
push 1
push 0x34
push edi
call fcn.0048baf0
push esi
push 0x2749
push edi
call fcn.0048baf0
push 1
push 0x63
push edi
call fcn.0048baf0
mov esi, dword [ebp + 0x3c]
push esi
push 0x4e
push edi
call fcn.0048baf0
add esp, 0x48
push esi
push 0xd
push edi
call fcn.0048baf0
push 0
push 0x40
push edi
call fcn.0048baf0
push 0
push 0x51
push edi
call fcn.0048baf0
mov esi, dword [ebp - 0x34]
add esp, 0x24
mov ecx, esi
push edi
call fcn.00488de0
mov byte [esi + 0x60], 0
cmp dword [edi + 0x40], 0
je 0x489ef8
push str.easy_handle_already_used_in_multi_handle
push edi
call fcn.004909c0
mov esi, 2
add esp, 8
mov dword [ebp - 0x2c], esi
jmp 0x489f72
mov esi, dword [edi + 0x44]
test esi, esi
jne 0x489f1d
lea edx, [esi + 3]
lea ecx, [esi + 1]
call fcn.0048d4f0
mov esi, eax
test esi, esi
jne 0x489f1a
mov esi, 0x1b
mov dword [ebp - 0x2c], esi
jmp 0x489f72
mov dword [edi + 0x44], esi
push dword [edi + 0x4b0]
push 6
push esi
call fcn.0048ff20
add esp, 0xc
mov edx, edi
mov ecx, esi
call fcn.0048d700
mov dword [ebp - 0x2c], eax
mov ecx, esi
test eax, eax
je 0x489f5b
call fcn.0048f590
cmp dword [ebp - 0x2c], 3
mov esi, 2
mov eax, 0x1b
cmove esi, eax
mov dword [ebp - 0x2c], esi
jmp 0x489f72
mov dword [edi + 0x40], esi
call fcn.0048bb20
mov edx, edi
mov dword [ebp - 0x2c], eax
mov ecx, esi
call fcn.0048d970
mov esi, dword [ebp - 0x2c]
mov ecx, edi
call fcn.00494310
test esi, esi
je 0x489fbe
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
test ecx, ecx
je 0x489f8e
mov eax, dword [ecx]
push esi
push dword [ebp + 0x38]
call dword [eax]
mov esi, dword [ebp - 0x30]
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x489fa0
mov esi, dword [esi]
xor ecx, ecx
mov byte [esi], 0
cmp dword [ebp - 0x2c], ecx
sete cl
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x1a4]
call fcn.004625b0
mov esi, dword [ebp - 0x30]
jmp 0x48a006
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [ebp - 0x30]
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, esi
cmovae eax, dword [ebp + 0x20]
cmp dword [esi + 0x14], 0x10
jb 0x489fe8
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
test ecx, ecx
je 0x489f91
mov eax, dword [ecx]
push 0
push dword [ebp + 0x38]
call dword [eax]
jmp 0x489f91
xor esi, esi
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x48a03c
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48a032
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48a032
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0052365a
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x48a084
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48a07a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48a07a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0052365a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret 0x38