Function at 0x10002120
Capabilities:
Delete file
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x100d4fdb
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100ff2f0]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x1c]
push eax
call fcn.100032c0
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xb4], 0
cmp dword [eax + 0x18], 0x10
jb 0x10002178
add eax, 4
mov eax, dword [eax]
jmp 0x1000217b
add eax, 4
push eax
lea esi, [esp + 0x24]
call fcn.10004710
test eax, eax
jne 0x100021ac
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x24]
lea ecx, [esp + ecx + 0x1c]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x100021a4
or eax, 4
push 0
push eax
call fcn.100019d0
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0x24]
push esi
call ebx
mov ebp, dword [edi + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebp, ebp
jbe 0x100022b7
cmp dword [edi], 0
jg 0x100022b7
lea ebp, [edi + 0x24]
push ebp
call ebx
mov esi, dword [edi + 0x1c]
mov edx, dword [edi + 0x20]
add edx, esi
cmp esi, edx
jbe 0x100021ea
call fcn.100b2a8a
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], esi
call fcn.10005830
mov esi, dword [eax]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.100023f0
lea ebp, [edi + 0x24]
push ebp
call ebx
mov eax, dword [edi + 0x20]
test eax, eax
je 0x10002246
mov edx, dword [edi + 0x18]
inc dword [edi + 0x1c]
mov ecx, dword [edi + 0x1c]
add edx, edx
add edx, edx
cmp edx, ecx
ja 0x10002237
mov dword [edi + 0x1c], 0
add eax, 0xffffffff
mov dword [edi + 0x20], eax
jne 0x10002246
mov dword [edi + 0x1c], 0
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1000229f
cmp dword [esi + 0x34], 0x10
jb 0x10002263
mov eax, dword [esi + 0x20]
push eax
call fcn.100b2ba3
add esp, 4
mov ebp, 0xf
mov dword [esi + 0x34], ebp
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
cmp dword [esi + 0x18], 0x10
jb 0x10002288
mov eax, dword [esi + 4]
push eax
call fcn.100b2ba3
add esp, 4
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], 0
push esi
mov byte [esi + 4], 0
call fcn.100b2ba3
add esp, 4
lea esi, [edi + 0x24]
push esi
call ebx
mov ebp, dword [edi + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebp, ebp
ja 0x100021ca
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov ecx, dword [esp + eax + 0x24]
xor esi, esi
test cl, 6
jne 0x100022e0
mov eax, dword [esp + eax + 0x44]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x100022e0
mov esi, 4
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
lea ecx, [esp + ecx + 0x1c]
test esi, esi
je 0x10002305
mov eax, dword [ecx + 8]
or eax, esi
cmp dword [ecx + 0x28], 0
jne 0x100022fd
or eax, 4
push 0
push eax
call fcn.100019d0
lea esi, [esp + 0x20]
call fcn.100047f0
test eax, eax
jne 0x10002335
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x24]
lea ecx, [esp + ecx + 0x1c]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x1000232d
or eax, 4
push 0
push eax
call fcn.100019d0
mov ebx, dword [esp + 0xbc]
cmp dword [ebx + 0x18], 0x10
lea edi, [ebx + 4]
jb 0x10002349
mov eax, dword [edi]
jmp 0x1000234b
mov eax, edi
push 0
push 0
push 3
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000237b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
ja 0x1000238a
cmp dword [ebx + 0x18], 0x10
jb 0x10002383
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x70]
mov dword [esp + 0xb4], 0xffffffff
call fcn.100033a0
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x74], vtable.std::ios_base.0
call fcn.100b12a8
add esp, 4
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 4