Function at 0x10009c70
Capabilities:
Delete file
Get file size
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10123df7
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x1015d2f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x13c], edi
mov dword [ebp - 4], 0
cmp byte [edi + 0x3c], 0
mov esi, 0x10
jne 0x1000a599
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.100057a0
call fcn.1000d6b0
lea ecx, [edi + 4]
push ecx
mov ecx, dword [edi]
push ecx
push eax
call fcn.1000e910
test al, al
mov eax, dword [ebp - 0x4c]
jne 0x10009d27
cmp dword [ebp - 0x38], esi
jae 0x10009d06
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x38], esi
jb 0x1000a599
mov edx, dword [ebp - 0x4c]
push edx
call fcn.100f4085
add esp, 4
jmp 0x1000a599
cmp dword [ebp - 0x38], esi
jae 0x10009d2f
lea eax, [ebp - 0x4c]
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 0x10009dfe
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x1fd800
jb 0x10009dfe
mov ecx, dword [edi]
xor eax, eax
push 0xa
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
push 0x20
lea eax, [ebp - 0x34]
push eax
push ecx
mov byte [ebp - 0x34], 0
call fcn.100f3531
add esp, 0x10
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009dc0
sub eax, edx
push eax
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x6c]
call fcn.10004290
call fcn.1000a920
lea ecx, [edi + 4]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.1000b540
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], 0x10
jb 0x10009dfe
mov eax, dword [ebp - 0x68]
push eax
call fcn.100f4085
add esp, 4
test byte [0x10163984], 1
jne 0x10009e28
or dword [0x10163984], 1
mov byte [ebp - 4], 3
call fcn.100127b0
push 0x101248c0
call fcn.100f3c02
add esp, 4
mov byte [ebp - 4], 1
test byte [0x1016398c], 1
mov ebx, dword [edi]
jne 0x10009e54
or dword [0x1016398c], 1
mov byte [ebp - 4], 4
call fcn.1000fed0
push 0x101248a0
call fcn.100f3c02
add esp, 4
mov byte [ebp - 4], 1
lea esi, [edi + 4]
push esi
push ebx
push 0x10163850
call fcn.100103f0
test eax, eax
jne 0x10009f3d
push esi
push ebx
push 0x10163630
call fcn.10012ba0
test eax, eax
je 0x10009e85
cmp dword [eax + 0x24], 0
jne 0x10009f3d
lea esi, [edi + 0x60]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [edi + 0x5c]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0x64
jbe 0x1000a547
lea ebx, [edi + 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0x58]
mov ecx, dword [edi + 0x5c]
add ecx, esi
cmp esi, ecx
jbe 0x10009ebd
call fcn.100f3f6c
mov edx, dword [edi + 0x40]
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x148], esi
call fcn.10041f00
mov eax, dword [eax]
push ebx
mov dword [ebp - 0x124], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [edi + 0x60]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x10009f1e
mov edx, dword [edi + 0x54]
inc dword [edi + 0x58]
mov ecx, dword [edi + 0x58]
add edx, edx
add edx, edx
cmp edx, ecx
ja 0x10009f0f
mov dword [edi + 0x58], 0
add eax, 0xffffffff
mov dword [edi + 0x5c], eax
jne 0x10009f1e
mov dword [edi + 0x58], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x124]
test esi, esi
je 0x1000a547
call fcn.1000a5d0
jmp 0x1000a547
lea eax, [edi + 0x98]
push eax
mov dword [ebp - 0x144], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x1e8]
push eax
mov byte [ebp - 4], 5
call fcn.10004960
mov byte [ebp - 4], 6
cmp dword [ebp - 0x38], 0x10
mov edx, dword [ebp - 0x4c]
jae 0x10009f70
lea edx, [ebp - 0x4c]
push 0x10
mov ecx, 0x2a
lea esi, [ebp - 0x1e4]
call fcn.10005c30
test eax, eax
jne 0x10009fb1
mov ecx, dword [ebp - 0x1e8]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0x1e0]
lea ecx, [ebp + ecx - 0x1e8]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x10009fa9
or eax, 4
push 0
push eax
call fcn.10001aa0
lea esi, [edi + 0x60]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [edi + 0x5c]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jbe 0x1000a356
cmp byte [edi + 0x3c], 0
jne 0x1000a356
lea ebx, [edi + 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0x58]
mov edx, dword [edi + 0x5c]
add edx, esi
cmp esi, edx
jbe 0x10009ff2
call fcn.100f3f6c
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x154]
mov dword [ebp - 0x150], esi
call fcn.10041f00
mov esi, dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x68], al
mov byte [ebp - 4], 7
test byte [0x10163984], 1
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x12c], eax
jne 0x1000a05e
or dword [0x10163984], 1
mov byte [ebp - 4], 8
call fcn.100127b0
push 0x101248c0
call fcn.100f3c02
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x124]
push ecx
mov ecx, dword [edi]
lea edx, [ebp - 0x6c]
push edx
lea ebx, [esi + 0x1c]
push ebx
push esi
push 0x10163630
lea eax, [edi + 4]
call fcn.10012af0
test al, al
jne 0x1000a13b
lea eax, [edi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x1000a0bd
mov edx, dword [edi + 0x54]
inc dword [edi + 0x58]
mov ecx, dword [edi + 0x58]
add edx, edx
add edx, edx
cmp edx, ecx
ja 0x1000a0ae
mov dword [edi + 0x58], 0
add eax, 0xffffffff
mov dword [edi + 0x5c], eax
jne 0x1000a0bd
mov dword [edi + 0x58], 0
lea eax, [edi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1000a11c
cmp dword [ebx + 0x18], 0x10
jb 0x1000a0dd
mov eax, dword [ebx + 4]
push eax
call fcn.100f4085
add esp, 4
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], 0
mov byte [ebx + 4], 0
cmp dword [esi + 0x18], 0x10
jb 0x1000a101
mov eax, dword [esi + 4]
push eax
call fcn.100f4085
add esp, 4
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
push esi
mov byte [esi + 4], 0
call fcn.100f4085
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x54], 0x10
jb 0x10009fb1
mov eax, dword [ebp - 0x68]
push eax
call fcn.100f4085
add esp, 4
jmp 0x10009fb1
mov ax, word [ebp - 0x58]
movzx ecx, ax
mov dword [ebp - 0x12c], ecx
test ax, ax
jle 0x1000a17f
lea ecx, [ebp - 0x6c]
lea edx, [ebp - 0x30]
call fcn.10026720
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 9
call fcn.100057a0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x18], 0x10
jb 0x1000a17f
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100f4085
add esp, 4
movzx eax, word [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
push ecx
mov dword [ebp - 0x134], eax
call sub.WS2_32.dll_htons
movzx edx, ax
push 2
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x134], edx
call fcn.10004410
mov ecx, dword [ebp - 0x12c]
push ecx
call sub.WS2_32.dll_htons
movzx edx, ax
push 2
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x12c], edx
call fcn.10004410
mov eax, dword [ebp - 0x124]
movzx ecx, ax
push eax
mov dword [ebp - 0x130], ecx
call sub.WS2_32.dll_htons
movzx edx, ax
push 2
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x130], edx
call fcn.10004410
push 0
call fcn.100f6578
add esp, 4
push eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x124], eax
call sub.WS2_32.dll_htonl
push 4
lea ecx, [ebp - 0x138]
push ecx
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x138], eax
call fcn.10004410
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov ecx, dword [ebp - 0x120]
mov eax, 0x77777777
imul ecx
sub edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
push 1
lea ecx, [ebp - 0x125]
add eax, edx
push ecx
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 0x125], al
call fcn.10004410
mov ecx, dword [ebp - 0x58]
test ecx, ecx
jbe 0x1000a2a0
cmp dword [ebp - 0x54], 0x10
mov eax, dword [ebp - 0x68]
jae 0x1000a293
lea eax, [ebp - 0x68]
push ecx
push eax
lea ecx, [ebp - 0x1e8]
call fcn.10004410
lea eax, [edi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x1000a2d8
mov edx, dword [edi + 0x54]
inc dword [edi + 0x58]
mov ecx, dword [edi + 0x58]
add edx, edx
add edx, edx
cmp edx, ecx
ja 0x1000a2c9
mov dword [edi + 0x58], 0
add eax, 0xffffffff
mov dword [edi + 0x5c], eax
jne 0x1000a2d8
mov dword [edi + 0x58], 0
lea eax, [edi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1000a337
cmp dword [ebx + 0x18], 0x10
jb 0x1000a2f8
mov eax, dword [ebx + 4]
push eax
call fcn.100f4085
add esp, 4
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], 0
mov byte [ebx + 4], 0
cmp dword [esi + 0x18], 0x10
jb 0x1000a31c
mov eax, dword [esi + 4]
push eax
call fcn.100f4085
add esp, 4
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
push esi
mov byte [esi + 4], 0
call fcn.100f4085
add esp, 4
call fcn.10015540
mov ecx, dword [ebp - 0x124]
push ecx
lea edx, [edi + 4]
push edx
mov edx, dword [edi]
push edx
mov ecx, eax
call fcn.100155b0
jmp 0x1000a11c
mov ecx, dword [ebp - 0x1e8]
mov eax, dword [ecx + 4]
xor esi, esi
test byte [ebp + eax - 0x1e0], 6
jne 0x1000a385
mov eax, dword [ebp + eax - 0x1c0]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x1000a385
mov esi, 4
mov ecx, dword [ebp - 0x1e8]
mov ecx, dword [ecx + 4]
lea ecx, [ebp + ecx - 0x1e8]
test esi, esi
je 0x1000a3af
mov eax, dword [ecx + 8]
or eax, esi
cmp dword [ecx + 0x28], 0
jne 0x1000a3a7
or eax, 4
push 0
push eax
call fcn.10001aa0
lea esi, [ebp - 0x1e4]
call fcn.10005d10
test eax, eax
jne 0x1000a3e9
mov edx, dword [ebp - 0x1e8]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x1e0]
lea ecx, [ebp + ecx - 0x1e8]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x1000a3e1
or eax, 4
push 0
push eax
call fcn.10001aa0
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x1000a3f5
lea eax, [ebp - 0x4c]
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 0x1000a425
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
ja 0x1000a438
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x1000a431
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x1e8]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x194]
mov dword [ebp - 0x158], eax
mov dword [ebp + edx - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
lea eax, [ebp - 0x1e4]
mov dword [ebp - 0x15c], eax
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 4], 0xb
cmp byte [ebp - 0x19c], 0
je 0x1000a482
mov esi, eax
call fcn.10005d10
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x124], eax
test eax, eax
je 0x1000a4f6
mov ebx, dword [eax]
test ebx, ebx
je 0x1000a4e7
push 0
lea ecx, [ebp - 0x140]
call fcn.100f2b3f
mov eax, dword [ebx + 4]
test eax, eax
jbe 0x1000a4c3
cmp eax, 0xffffffff
jae 0x1000a4c3
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [ebp - 0x140]
and esi, ebx
call fcn.100f2b67
test esi, esi
je 0x1000a4e7
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x124]
push ecx
call fcn.100f4085
add esp, 4
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 4], 0xa
call fcn.100f2c08
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1e8]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x194]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.100f2744
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x144]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [edi + 0x3c], 0
je 0x1000a561
cmp dword [ebp - 0x38], 0x10
jb 0x1000a599
mov eax, dword [ebp - 0x4c]
push eax
call fcn.100f4085
add esp, 4
jmp 0x1000a599
mov byte [ebp - 4], 0
cmp dword [ebp - 0x38], 0x10
jb 0x1000a577
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.100f4085
add esp, 4
mov edx, dword [edi + 0x7c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10009cb0
jmp 0x1000a599
mov eax, dword [edi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x78], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100f30a6
mov esp, ebp
pop ebp
ret