Function at 0x1110e40b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e4f6e
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x11279148]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov ecx, dword [edi + 0x20]
call fcn.11107ed0
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x1110ea43
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx + 0x48]
push 0x9c4
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea esi, [eax - 1]
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + 0x44]
or esi, 1
mov dword [ebp - 0x20], esi
mov byte [ebp - 0xd], 0
call fcn.11171060
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x1110e99a
mov eax, dword [ebx]
dec eax
cmp eax, 0xa
ja case.0x1110e2e4.8
jmp dword [eax*4 + 0x1110ea88]
mov edi, dword [ebp - 0x14]
mov esi, dword [edi + 0x174]
cmp esi, dword [esi]
je 0x1110e65f
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [eax + 0x25c]
mov dword [ebp - 0x24], eax
jmp 0x1110e313
mov eax, dword [ebp - 0x24]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 8]
mov ebx, dword [edx + 0x25c]
cmp ebx, eax
je 0x1110e348
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x30], eax
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 0x30]
jl 0x1110e3af
mov eax, dword [edi + 0x174]
mov esi, ecx
cmp esi, dword [eax]
jne 0x1110e310
jmp 0x1110e65f
mov esi, dword [ebp - 0x28]
add esi, 0x48
cmp word [esi], 0
je 0x1110e65f
cmp word [edx + 0x48], 0
mov ecx, 0x11247f3c
je 0x1110e367
lea ecx, [edx + 0x48]
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1110e396
test dx, dx
je 0x1110e392
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1110e396
add eax, 4
add ecx, 4
test dx, dx
jne 0x1110e370
xor eax, eax
jmp 0x1110e39b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1110e65f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1110e65f
mov eax, dword [ebp - 0x18]
add eax, 4
push eax
push ecx
push esi
lea ecx, [edi + 0x174]
call fcn.1110a390
mov ecx, dword [edi + 0x178]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jb 0x1110ea55
inc ecx
mov dword [edi + 0x178], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, edi
cmp dword [eax + 0x24], 0
jne 0x1110e3f6
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x24], ecx
cmp dword [eax + 0x28], 0
jne case.0x1110e2e4.8
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x28], edx
jmp case.0x1110e2e4.8
mov edi, dword [ebp - 0x14]
mov esi, dword [edi + 0x174]
mov dword [ebp - 0x30], 0
cmp esi, dword [esi]
je 0x1110e46e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [eax + 0x25c]
mov dword [ebp - 0x24], eax
jmp 0x1110e436
mov eax, dword [ebp - 0x24]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 8]
mov ebx, dword [edx + 0x25c]
cmp ebx, eax
je 0x1110e573
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x3c], eax
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 0x3c]
jl 0x1110e5d3
mov eax, dword [edi + 0x174]
mov esi, ecx
cmp esi, dword [eax]
jne 0x1110e433
mov esi, dword [edi + 0x174]
mov ebx, dword [ebp - 0x18]
mov eax, dword [esi + 4]
add ebx, 4
push ebx
push eax
push esi
lea ecx, [edi + 0x174]
call fcn.1110a390
mov ecx, dword [edi + 0x178]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jb 0x1110ea55
inc ecx
cmp dword [ebp - 0x1c], 0
mov dword [edi + 0x178], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
je 0x1110e4d8
mov ebx, dword [ebx]
mov edx, dword [ebx]
mov eax, edi
mov eax, dword [eax + 0x178]
push eax
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
push eax
push str.AddItem_type_d__items_d_n
call fcn.111bd7b0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
cmp eax, 0xb
jne 0x1110e63d
cmp word [edi + 0x60], 0
lea esi, [edi + 0x60]
jne 0x1110e655
cmp byte [edi + 0x160], 0
jne 0x1110e655
mov ecx, dword [0x1127d368]
mov dword [ebp - 0x2c], 0
test ecx, ecx
je 0x1110e525
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0x2c]
push eax
call edx
push 0x80
push esi
call fcn.111bdbe0
add esp, 8
test eax, eax
je 0x1110e61a
mov ecx, 0x1122343c
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1110e611
test dx, dx
je 0x1110e56c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1110e611
add eax, 4
add ecx, 4
test dx, dx
jne 0x1110e542
xor eax, eax
jmp 0x1110e616
mov esi, dword [ebp - 0x28]
add esi, 0x48
cmp word [esi], 0
je 0x1110e5c7
add edx, 0x48
cmp word [edx], 0
mov ecx, 0x11247f3c
je 0x1110e58f
mov ecx, edx
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1110e5b7
test dx, dx
je 0x1110e5b3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1110e5b7
add eax, 4
add ecx, 4
test dx, dx
jne 0x1110e591
xor eax, eax
jmp 0x1110e5bc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1110e5c7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x30], 1
jmp 0x1110e4d8
mov eax, dword [ebp - 0x18]
add eax, 4
push eax
push ecx
push esi
lea ecx, [edi + 0x174]
call fcn.1110a390
mov ecx, dword [edi + 0x178]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jb 0x1110ea55
inc ecx
mov dword [edi + 0x178], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
jmp 0x1110e4d8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1110e61f
xor eax, eax
mov word [esi], ax
mov ecx, dword [0x1127d368]
test ecx, ecx
je 0x1110e634
mov edx, dword [ecx]
mov eax, dword [ebp - 0x2c]
mov edx, dword [edx + 0x18]
push eax
call edx
mov byte [edi + 0x160], 1
jmp 0x1110e655
cmp dword [edi + 0x24], 0
jne 0x1110e649
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x24], eax
cmp dword [edi + 0x28], 0
jne 0x1110e655
mov ecx, dword [ebp - 0x20]
mov dword [edi + 0x28], ecx
cmp dword [ebp - 0x30], 0
je case.0x1110e2e4.8
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
test ecx, ecx
je case.0x1110e2e4.8
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
jmp case.0x1110e2e4.8
xor esi, esi
push 0xc
mov dword [ebp - 0x48], esi
call fcn.111709c0
mov edi, eax
add esp, 4
cmp edi, esi
je 0x1110ea60
mov dword [edi], edi
mov dword [ebp - 0x4c], edi
mov dword [edi + 4], edi
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ecx + 0x174]
mov dword [ebp - 4], esi
cmp ebx, dword [ebx]
je 0x1110e760
nop
mov eax, dword [ebx + 4]
mov esi, dword [eax + 8]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
cmp eax, 0xb
je 0x1110e74c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x1110e6da
cmp dword [esi + 0x25c], eax
jne 0x1110e74c
mov eax, dword [ecx]
cmp eax, 0xa
jne 0x1110e6ea
cmp dword [esi + 0x25c], 0
jl 0x1110e6f8
cmp eax, 9
jne 0x1110e74c
cmp dword [esi + 0x25c], 0
jle 0x1110e74c
mov eax, dword [ebx + 4]
mov ecx, dword [edi + 4]
add eax, 8
push eax
push ecx
push edi
lea ecx, [ebp - 0x4c]
call fcn.1110a390
mov edx, 0x3ffffffe
sub edx, dword [ebp - 0x48]
cmp edx, 1
jb 0x1110ea55
inc dword [ebp - 0x48]
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x24], 0
jne 0x1110e737
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x24], ecx
cmp dword [eax + 0x28], 0
jne 0x1110e743
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x40], 0
jne 0x1110e760
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebx + 4]
mov eax, dword [ecx + 0x174]
cmp ebx, dword [eax]
jne 0x1110e6b0
mov eax, dword [edi]
mov dword [ebp - 0x28], eax
cmp eax, edi
je 0x1110e7dc
mov ebx, dword [ebp - 0x14]
jmp 0x1110e773
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
mov eax, dword [ebx + 0x174]
mov esi, dword [eax]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], eax
cmp esi, eax
je 0x1110e7b4
cmp dword [esi + 8], ecx
jne 0x1110e7ae
mov eax, dword [esi + 4]
push esi
mov esi, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
add esp, 4
dec dword [ebx + 0x178]
jmp 0x1110e7b0
mov esi, dword [esi]
cmp esi, eax
jne 0x1110e788
cmp word [ecx + 0x48], 0
lea eax, [ecx + 0x48]
je 0x1110e7c5
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
mov dword [ebp - 0x28], eax
cmp eax, edi
jne 0x1110e770
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
mov dword [ebp - 0x48], 0
cmp eax, edi
je 0x1110e801
mov edi, edi
mov esi, dword [eax]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x1110e7f0
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp case.0x1110e2e4.8
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add esi, 8
push esi
add ecx, 0x2c
call fcn.1113db60
cmp dword [ebp - 0x1c], 0
je case.0x1110e2e4.8
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
test al, al
jne 0x1110e84e
push 0x261
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov esi, dword [esi + 0xc]
push esi
push str.SetFileName__s_n
call fcn.111bd7b0
add esp, 8
jmp case.0x1110e2e4.8
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 0x1c]
lea ecx, [esi + 0x3c]
push edi
call fcn.1113db60
lea eax, [ebx + 8]
push eax
lea ecx, [esi + 0x2c]
call fcn.1113db60
xor ecx, ecx
mov word [esi + 0x60], cx
mov byte [esi + 0x160], cl
cmp dword [ebp - 0x1c], ecx
je case.0x1110e2e4.8
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
test al, al
jne 0x1110e8ba
push 0x261
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov edi, dword [edi + 0xc]
push edi
push str.SetUserName__s_n
call fcn.111bd7b0
add esp, 8
jmp case.0x1110e2e4.8
cmp dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
mov dword [ecx + 0x18], 1
je case.0x1110e2e4.8
push str.SaveAndExit_n
call fcn.111bd7b0
add esp, 4
jmp case.0x1110e2e4.8
cmp dword [ebp - 0x1c], 0
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x38], 3
je case.0x1110e2e4.8
push 3
push str.SaveAndClear__nMustClear_d_n
call fcn.111bd7b0
add esp, 8
jmp case.0x1110e2e4.8
cmp dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x2c]
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x34], eax
je case.0x1110e2e4.8
push str.SaveAndContinue_n
call fcn.111bd7b0
add esp, 4
jmp case.0x1110e2e4.8
cmp dword [ebp - 0x1c], 0
je 0x1110e94a
push str.LoadTempJournal_n
call fcn.111bd7b0
add esp, 4
mov ecx, dword [ebp - 0x18]
add ecx, 0x30
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.1110a8f0
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x3c], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 2
call fcn.1113cd80
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 1
call fcn.1113cd80
lea ecx, [esi + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.1113cd80
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov edi, dword [ebp - 0x14]
mov ebx, esi
mov esi, dword [ebp - 0x20]
add esp, 4
mov edx, dword [edi + 0x20]
cmp byte [edx + 0x54], 0
jne 0x1110e9f9
mov eax, dword [edi + 0x24]
test eax, eax
je 0x1110e9f9
cmp byte [ebp - 0xd], 0
jne 0x1110e9e5
sub esi, eax
cmp esi, 0x2710
jbe 0x1110e9f9
mov eax, dword [edi + 0x3c]
mov edx, dword [eax]
lea ecx, [edi + 0x3c]
call edx
test al, al
jne 0x1110e9df
push 0x263
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
cmp dword [edi + 0x44], 0
je 0x1110e9f9
push 3
mov ecx, edi
call fcn.1110bf80
test al, al
je 0x1110e9f9
mov dword [edi + 0x24], 0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1110ea07
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1110ea18
push eax
mov ecx, edi
call fcn.1110b5d0
jmp 0x1110ea30
cmp dword [edi + 0x28], 0
je 0x1110ea30
mov ecx, edi
call fcn.1110b440
test al, al
je 0x1110ea30
mov dword [edi + 0x28], 0
test ebx, ebx
jne 0x1110e2a5
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1110e293
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x40], esi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x1126446c
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x58], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
lea ecx, [ecx]
or esp, esp
adc byte [ecx], dl
shr al, 1
adc byte [ecx], dl
psubsb mm2, qword [eax]
adc ebx, esi
call 0xfa25fbaa
adc byte [ecx], dl
call 0xfa47fbb2
adc byte [ecx], dl
pop ecx
jmp 4153080762