Function at 0x100031c0
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007248c
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x1009e034]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
sub esp, 8
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call fcn.10003b60
lea eax, [edi + 0x1c]
mov dword [esp + 0x258], 0
lea esi, [eax + 4]
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x20], 1
lea eax, [edi + 0x38]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x258], 1
cmp ecx, eax
je 0x1000326c
push eax
call fcn.10003ee0
push esi
mov byte [esp + 0x25c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x40], 0
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jne 0x1000329f
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x10003293
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100035af
push 0x70
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x258], 2
test eax, eax
je 0x100032f3
mov ecx, eax
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
call fcn.100517f0
mov esi, eax
mov dword [esp + 0x14], eax
jmp 0x100032f9
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x258], 3
push str.root
lea ecx, [esp + 0x60]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
call fcn.10050f70
mov byte [esp + 0x258], 4
sub esp, 0xc
lea ecx, [esp + 0x188]
mov dword [esp + 0x194], 0
mov dword [esp + 0x198], 0
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1c0], 0
mov dword [esp + 0x1c4], 0
call fcn.100523c0
lea eax, [esp + 0x17c]
push eax
mov ecx, esi
mov byte [esp + 0x25c], 5
call fcn.10050d50
mov edi, dword [esp + 0x3c]
mov esi, dword [edi]
cmp esi, edi
je 0x10003526
jmp 0x10003400
mov ebx, dword [esi + 8]
push str.item
lea ecx, [esp + 0xf0]
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0
mov dword [esp + 0x13c], 0
mov dword [esp + 0x140], 0
mov dword [esp + 0x174], 0
mov dword [esp + 0x178], 0
call fcn.10050f70
push 0x1007d040
lea ecx, [esp + 0x130]
mov byte [esp + 0x25c], 6
call fcn.10052a20
mov dword [esp + 0x10], eax
test eax, eax
je 0x100034f1
push ebx
push 0x1007d220
lea eax, [esp + 0x20c]
push 0x40
push eax
call fcn.10052b70
add esp, 0x10
cmp byte [esp + 0x204], 0
jne 0x100034c9
xor ecx, ecx
jmp 0x100034dc
lea ecx, [esp + 0x204]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100034d3
sub ecx, edx
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x208]
push eax
add ecx, 0x2c
call fcn.10001e40
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x60]
call fcn.10050d50
lea ecx, [esp + 0xec]
mov byte [esp + 0x258], 5
call fcn.100510c0
mov esi, dword [esi]
cmp esi, edi
jne 0x10003400
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x5c]
push eax
mov ecx, esi
call fcn.10050d50
mov edx, dword [esp + 0x18]
push 0xfde9
lea edx, [edx + 4]
lea ecx, [esp + 0x28]
call fcn.10053260
add esp, 4
mov byte [esp + 0x258], 7
cmp dword [eax + 0x14], 0x10
jb 0x1000355e
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.10051be0
cmp dword [esp + 0x38], 0x10
jb 0x10003576
push dword [esp + 0x24]
call ebx
add esp, 4
lea ecx, [esp + 0x17c]
mov byte [esp + 0x258], 4
call fcn.10002e00
lea ecx, [esp + 0x5c]
mov byte [esp + 0x258], 3
call fcn.100510c0
mov byte [esp + 0x258], 0
test esi, esi
je 0x100035af
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x100035d5
push eax
call ebx
add esp, 4
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [esp + 0x3c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], 0
cmp ecx, eax
je 0x10003606
mov esi, dword [ecx]
push ecx
call ebx
mov eax, dword [esp + 0x40]
add esp, 4
mov ecx, esi
cmp esi, eax
jne 0x100035f4
push eax
call ebx
add esp, 4
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret