Function at 0x40b1a0
Capabilities:
Delete file
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x439393
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44aaf0]
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 0x441cb8
lea esi, [esp + 0x20]
call fcn.00403ce0
mov dword [esp + 0x50], 0
cmp dword [0x44f52c], 0
jne 0x40b20a
push 4
call fcn.004129f6
add esp, 4
test eax, eax
je 0x40b203
mov dword [eax], vtable.CESalesAppCollection.0
jmp 0x40b205
xor eax, eax
mov dword [0x44f52c], eax
mov ecx, esi
mov dword [esp + 0x50], 0xffffffff
call fcn.00406eb0
cmp eax, 1
jl 0x40b527
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 0x40b250
push 0
push eax
call ebx
test eax, eax
jne 0x40b2d3
push 5
push 0x441600
push 0x441fb0
push 0
call ebp
cmp eax, 4
jne 0x40b2fe
push esi
push 0
push 1
call edi
test eax, eax
je 0x40b279
push 0
push eax
call ebx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x441cb8
lea esi, [esp + 0x20]
call fcn.00403ce0
mov dword [esp + 0x50], 1
cmp dword [0x44f52c], 0
jne 0x40b2bc
push 4
call fcn.004129f6
add esp, 4
test eax, eax
je 0x40b2b5
mov dword [eax], vtable.CESalesAppCollection.0
jmp 0x40b2b7
xor eax, eax
mov dword [0x44f52c], eax
mov ecx, esi
mov dword [esp + 0x50], 0xffffffff
call fcn.00406eb0
test eax, eax
jne 0x40b234
lea ecx, [esp + 0x28]
call fcn.0041dcb7
mov dword [esp + 0x4c], 2
call fcn.00412a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b335
push 0x80004005
call fcn.00401ed0
mov ecx, dword [0x44f52c]
test ecx, ecx
je 0x40b31a
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [0x44f52c], 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 0x40b548
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 0x40b39b
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.0041dd43
test eax, eax
je 0x40b4f5
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push ebx
lea ecx, [esp + 0x30]
call fcn.0041dd43
mov dword [esp + 0x1c], eax
call fcn.00412a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b2f4
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 0x441f38
push ecx
mov byte [esp + 0x58], 5
call fcn.00405da0
add esp, 0xc
cmp dword [0x44f53c], 0
jne 0x40b43b
push 4
call fcn.004129f6
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x4c], 6
je 0x40b42f
mov esi, eax
call fcn.0040fc70
jmp 0x40b431
xor eax, eax
mov byte [esp + 0x4c], 5
mov dword [0x44f53c], 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 0x40b483
cmp eax, dword [esi]
jne 0x40b483
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b4b9
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 0x40b55e
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.004226d8
add esp, 0x10
add edi, 0x10
mov dword [ebp], edi
mov byte [esp + 0x54], 5
call fcn.0040ff80
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 0x40b4ea
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
cmp dword [esp + 0x1c], 0
jne 0x40b3b3
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 0x40b516
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.0041dcdb
mov ecx, dword [0x44f52c]
test ecx, ecx
je 0x40b543
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [0x44f52c], 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