Function at 0x40ad50
Capabilities:
Delete file
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x438e83
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449af0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x44028c
lea esi, [esp + 0x20]
call fcn.00403ce0
mov dword [esp + 0x50], 0
cmp dword [0x44e52c], 0
jne 0x40adba
push 4
call fcn.00412566
add esp, 4
test eax, eax
je 0x40adb3
mov dword [eax], vtable.CESalesAppCollection.0
jmp 0x40adb5
xor eax, eax
mov dword [0x44e52c], eax
mov ecx, esi
mov dword [esp + 0x50], 0xffffffff
call fcn.00406e60
cmp eax, 1
jl 0x40b0d7
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [esp + 0x18]
push esi
push 0
push 1
call edi
test eax, eax
je 0x40ae00
push 0
push eax
call ebx
test eax, eax
jne 0x40ae83
push 5
push 0x43fc28
push 0x440568
push 0
call ebp
cmp eax, 4
jne 0x40aeae
push esi
push 0
push 1
call edi
test eax, eax
je 0x40ae29
push 0
push eax
call ebx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x44028c
lea esi, [esp + 0x20]
call fcn.00403ce0
mov dword [esp + 0x50], 1
cmp dword [0x44e52c], 0
jne 0x40ae6c
push 4
call fcn.00412566
add esp, 4
test eax, eax
je 0x40ae65
mov dword [eax], vtable.CESalesAppCollection.0
jmp 0x40ae67
xor eax, eax
mov dword [0x44e52c], eax
mov ecx, esi
mov dword [esp + 0x50], 0xffffffff
call fcn.00406e60
test eax, eax
jne 0x40ade4
lea ecx, [esp + 0x28]
call fcn.0041d7e2
mov dword [esp + 0x4c], 2
call fcn.0041259b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40aee5
push 0x80004005
call fcn.00401ed0
mov ecx, dword [0x44e52c]
test ecx, ecx
je 0x40aeca
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [0x44e52c], 0
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
jmp 0x40b0f8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x4c], 3
mov ecx, dword [esp + 0x54]
push str.ESales_binESalesUpdate.exe
add ecx, 0x178
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.004039e0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 4
call fcn.00402000
mov byte [esp + 0x4c], 3
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x18]
push 0
push ebx
lea ecx, [esp + 0x30]
call fcn.0041d86e
test eax, eax
je 0x40b0a5
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push ebx
lea ecx, [esp + 0x30]
call fcn.0041d86e
mov dword [esp + 0x1c], eax
call fcn.0041259b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40aea4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x54], eax
push ebx
lea ecx, [esp + 0x58]
push 0x44050c
push ecx
mov byte [esp + 0x58], 5
call fcn.00405d50
add esp, 0xc
cmp dword [0x44e53c], 0
jne 0x40afeb
push 4
call fcn.00412566
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x4c], 6
je 0x40afdf
mov esi, eax
call fcn.0040f820
jmp 0x40afe1
xor eax, eax
mov byte [esp + 0x4c], 5
mov dword [0x44e53c], eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x43f1fc
call fcn.00403ce0
mov byte [esp + 0x50], 7
mov esi, dword [esp + 0x58]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x2c], esp
mov ebp, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40b033
cmp eax, dword [esi]
jne 0x40b033
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b069
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40b10e
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
lea ecx, [esi + 0x10]
push ecx
push eax
lea edx, [edi + 0x10]
push edx
call fcn.00422203
add esp, 0x10
add edi, 0x10
mov dword [ebp], edi
mov byte [esp + 0x54], 5
call fcn.0040fb30
add esp, 8
mov byte [esp + 0x4c], 3
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b09a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
cmp dword [esp + 0x1c], 0
jne 0x40af63
lea eax, [ebx - 0x10]
mov byte [esp + 0x4c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0041d806
mov ecx, dword [0x44e52c]
test ecx, ecx
je 0x40b0f3
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [0x44e52c], 0
mov eax, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4
call fcn.00401fb0
int3