Function at 0x10024890
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100479d7
mov eax, dword fs:[0]
push eax
sub esp, 0x678
mov eax, dword [0x10056024]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
push esi
push edi
mov eax, dword [0x10056024]
xor eax, esp
push eax
lea eax, [esp + 0x688]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea eax, [esp + 0x47a]
push ebx
push eax
mov esi, ecx
mov word [esp + 0x480], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 0x690], ebx
mov edx, dword [esi]
mov edx, dword [edx + 0xc8]
push ebx
push eax
mov ecx, esi
call edx
mov edi, eax
cmp edi, ebx
jne 0x10024935
lea ebx, [esp + 0x18]
mov dword [esp + 0x690], 0xffffffff
call fcn.10027d20
jmp 0x10024ba0
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
mov dword [esp + 0x14], ebx
call edx
test eax, eax
jbe 0x10024a49
lea ebx, [ebx]
mov eax, dword [edi]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x14]
lea ecx, [esp + 0x44]
push ecx
push edx
mov ecx, edi
call eax
mov si, word [esp + 0x268]
xor edx, edx
cmp si, bx
lea eax, [esp + 0x474]
lea ecx, [esp + 0x268]
je 0x1002499a
add ecx, 2
add edx, 1
cmp word [ecx], bx
jne 0x10024980
cmp edx, 0x103
jle 0x1002499a
mov ebx, 0x103
jmp 0x100249bd
xor edx, edx
cmp si, bx
lea ecx, [esp + 0x268]
je 0x100249bb
jmp 0x100249b0
add ecx, 2
add edx, 1
cmp word [ecx], bx
jne 0x100249b0
mov ebx, edx
xor edx, edx
test si, si
je 0x100249ec
lea ecx, [esp + 0x268]
lea esi, [esp + 0x474]
sub ecx, esi
cmp edx, ebx
jge 0x100249ec
mov si, word [ecx + eax]
mov word [eax], si
add eax, 2
add edx, 1
cmp word [ecx + eax], 0
jne 0x100249d4
lea ecx, [esp + 0x474]
push ecx
lea ecx, [esp + 0x2c]
mov word [eax], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [esp + 0x28]
push edx
lea esi, [esp + 0x1c]
mov byte [esp + 0x694], 1
call fcn.10027650
lea ecx, [esp + 0x28]
mov byte [esp + 0x690], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, dword [esp + 0x14]
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
add esi, 1
mov ecx, edi
mov dword [esp + 0x14], esi
call edx
xor ebx, ebx
cmp esi, eax
jb 0x10024950
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov dword [esp + 0x14], 0
lea ebx, [ebx]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov edi, dword [esp + 0x20]
je 0x10024b13
mov esi, edi
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x10024b13
mov esi, dword [esp + 0x14]
cmp dword [esi + ecx + 0x18], 8
jb 0x10024aa0
mov ecx, dword [esi + ecx + 4]
jmp 0x10024aa4
lea ecx, [esi + ecx + 4]
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10024ad2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 1
add esi, 0x1c
mov dword [esp + 0x14], esi
jmp 0x10024a60
mov dword [esp + 0x690], 0xffffffff
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10024b0c
mov edi, dword [esp + 0x20]
cmp esi, edi
je 0x10024b03
lea ecx, [ecx]
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x10024af0
mov esi, dword [esp + 0x1c]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
jmp 0x10024ba5
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea esp, [esp]
test ecx, ecx
je 0x10024b6f
mov esi, edi
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x10024b6f
mov esi, dword [esp + 0x14]
cmp dword [esi + ecx + 0x18], 8
jb 0x10024b50
mov ecx, dword [esi + ecx + 4]
jmp 0x10024b54
lea ecx, [esi + ecx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add ebx, 1
add esi, 0x1c
mov dword [esp + 0x14], esi
jmp 0x10024b20
test ecx, ecx
mov dword [esp + 0x690], 0xffffffff
je 0x10024ba0
cmp ecx, edi
mov esi, ecx
je 0x10024b97
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x10024b84
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x688]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x670]
xor ecx, esp
call fcn.10045f6c
mov esp, ebp
pop ebp
ret 4